[Updated] D8530: flags: also test merging a rename with and exec flag change
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Thu May 28 16:39:10 UTC 2020
Closed by commit rHG9438c84d1dce: flags: also test merging a rename with and exec flag change (authored by marmoute).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D8530?vs=21394&id=21498
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D8530/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D8530
AFFECTED FILES
tests/test-merge-exec.t
CHANGE DETAILS
diff --git a/tests/test-merge-exec.t b/tests/test-merge-exec.t
--- a/tests/test-merge-exec.t
+++ b/tests/test-merge-exec.t
@@ -80,3 +80,60 @@
$ cd ..
+Testing merging mode change with rename
+=======================================
+
+ $ hg clone base-repo rename-merge-repo
+ updating to branch default
+ 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
+ $ cd rename-merge-repo
+
+make "a" executable on one side
+
+ $ chmod +x a
+ $ hg status
+ M a
+ $ hg ci -m "make a executable"
+ $ [ -x a ] || echo "executable bit not recorded"
+ $ hg up ".^"
+ 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+
+make "a" renamed on the other side
+
+ $ hg mv a z
+ $ hg st --copies
+ A z
+ a
+ R a
+ $ hg ci -m "rename a to z"
+ created new head
+
+merge them (from the rename side)
+
+ $ hg merge 'desc("make a executable")'
+ 1 files updated, 0 files merged, 0 files removed, 0 files unresolved (false !)
+ 0 files updated, 0 files merged, 0 files removed, 0 files unresolved (true !)
+ (branch merge, don't forget to commit)
+ $ hg st --copies
+ M z (false !)
+ a (false !)
+ $ [ -x z ] || echo "executable bit lost"
+ executable bit lost (true !)
+
+merge them (from the chmod side)
+
+ $ hg up -C 'desc("make a executable")'
+ 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
+ $ hg merge 'desc("rename a to z")'
+ 1 files updated, 0 files merged, 0 files removed, 0 files unresolved (false !)
+ 1 files updated, 0 files merged, 1 files removed, 0 files unresolved (true !)
+ (branch merge, don't forget to commit)
+ $ hg st --copies
+ M z
+ a (false !)
+ R a
+ $ [ -x z ] || echo "executable bit lost"
+ executable bit lost (true !)
+
+
+ $ cd ..
To: marmoute, #hg-reviewers, durin42
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20200528/08f3469d/attachment-0002.html>
More information about the Mercurial-patches
mailing list