Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
mercurial-devel
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mercurial
mercurial-devel
Commits
7da6307cc07a
Commit
7da6307cc07a
authored
6 years ago
by
Sushil Khanchi
Browse files
Options
Downloads
Patches
Plain Diff
split: add tests which demonstrate the issue5864
Differential Revision:
https://phab.mercurial-scm.org/D6057
parent
3ba9ca537f57
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test-split.t
+42
-0
42 additions, 0 deletions
tests/test-split.t
with
42 additions
and
0 deletions
tests/test-split.t
+
42
−
0
View file @
7da6307c
...
...
@@ -709,3 +709,45 @@
EDITOR: HG: branch
'
default
'
EDITOR: HG: changed foo
saved backup bundle to $TESTTMP/f/b/.hg/strip-backup/904c80b40a4a-47fb907f-split.hg (obsstore-off !)
Testing the case in split when commiting flag-only file changes (issue5864)
---------------------------------------------------------------------------
$ hg init $TESTTMP/issue5864
$ cd $TESTTMP/issue5864
$ echo foo > foo
$ hg add foo
$ hg ci -m "initial"
$ chmod +x foo
$ hg ci -m "make executable"
$ hg glog
@ 1:3a2125f0f4cb make executable
|
o 0:51f273a58d82 initial
$ printf
'
y\ny\ny\n
'
| hg split
diff --git a/foo b/foo
old mode 100644
new mode 100755
examine changes to
'
foo
'
? [Ynesfdaq?] y
no changes to record
diff --git a/foo b/foo
old mode 100644
new mode 100755
examine changes to
'
foo
'
? [Ynesfdaq?] y
no changes to record
diff --git a/foo b/foo
old mode 100644
new mode 100755
examine changes to
'
foo
'
? [Ynesfdaq?] y
no changes to record
diff --git a/foo b/foo
old mode 100644
new mode 100755
examine changes to
'
foo
'
? [Ynesfdaq?] abort: response expected
[255]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment