Mercurial > hg
diff tests/test-merge-exec.t @ 44909:d452acc8cce8 stable
flags: account for flag change when tracking rename relevant to merge
There are some logic filtering rename to the one relevant to the merge. That
logic was oblivious of flag change, leading to exec flag being dropped when
merged with a renamed.
There are two others bugs affecting this scenario. This patch fix the was where
there is not modification involved except for the flag change. Fixes for the
other bug are coming in later changesets.
Differential Revision: https://phab.mercurial-scm.org/D8531
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sat, 16 May 2020 20:37:56 +0200 |
parents | 9438c84d1dce |
children | 783f059509e4 |
line wrap: on
line diff
--- a/tests/test-merge-exec.t Sat May 16 20:37:44 2020 +0200 +++ b/tests/test-merge-exec.t Sat May 16 20:37:56 2020 +0200 @@ -111,29 +111,25 @@ 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 !) + 1 files updated, 0 files merged, 0 files removed, 0 files unresolved (branch merge, don't forget to commit) $ hg st --copies - M z (false !) - a (false !) + M z + a $ [ -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 !) + 1 files updated, 0 files merged, 0 files removed, 0 files unresolved (branch merge, don't forget to commit) $ hg st --copies M z - a (false !) + a R a $ [ -x z ] || echo "executable bit lost" - executable bit lost (true !) $ cd ..