changeset 7630:a679bd371091

merge: fix execute bit update issue introduced by 89207edf3973
author Patrick Mezard <pmezard@gmail.com>
date Tue, 13 Jan 2009 22:41:06 +0100
parents f9fcb189c8e2
children 0b2ee57dfdb1 25ac72ca68f6
files mercurial/merge.py tests/test-up-issue1456 tests/test-up-issue1456.out
diffstat 3 files changed, 13 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/merge.py	Mon Jan 12 09:12:35 2009 +0100
+++ b/mercurial/merge.py	Tue Jan 13 22:41:06 2009 +0100
@@ -370,7 +370,7 @@
         elif m == "f": # forget
             repo.dirstate.forget(f)
         elif m == "e": # exec change
-            repo.dirstate.normaldirty(f)
+            repo.dirstate.normallookup(f)
         elif m == "g": # get
             if branchmerge:
                 repo.dirstate.normaldirty(f)
--- a/tests/test-up-issue1456	Mon Jan 12 09:12:35 2009 +0100
+++ b/tests/test-up-issue1456	Tue Jan 13 22:41:06 2009 +0100
@@ -15,3 +15,10 @@
 cat foo
 hg st -A
 
+echo '% validate update of standalone execute bit change'
+hg up -C 0
+chmod -x foo
+hg ci -m removeexec
+hg up -C 0
+hg up
+hg st
--- a/tests/test-up-issue1456.out	Mon Jan 12 09:12:35 2009 +0100
+++ b/tests/test-up-issue1456.out	Tue Jan 13 22:41:06 2009 +0100
@@ -1,2 +1,7 @@
 dirty
 M foo
+% validate update of standalone execute bit change
+1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+nothing changed
+0 files updated, 0 files merged, 0 files removed, 0 files unresolved
+0 files updated, 0 files merged, 0 files removed, 0 files unresolved