merge: fix execute bit update issue introduced by 89207edf3973
authorPatrick Mezard <pmezard@gmail.com>
Tue, 13 Jan 2009 22:41:06 +0100
changeset 7630 a679bd371091
parent 7614 f9fcb189c8e2
child 7631 0b2ee57dfdb1
child 7659 25ac72ca68f6
merge: fix execute bit update issue introduced by 89207edf3973
mercurial/merge.py
tests/test-up-issue1456
tests/test-up-issue1456.out
--- 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