diff mercurial/localrepo.py @ 22492:d5261db0011f stable

commit: catch changed exec bit on files from p1 (issue4382)
author Matt Mackall <mpm@selenic.com>
date Sun, 21 Sep 2014 10:07:06 -0500
parents a2ca9dcb4b77
children e6e7ef68c879
line wrap: on
line diff
--- a/mercurial/localrepo.py	Fri Sep 12 02:29:19 2014 +0900
+++ b/mercurial/localrepo.py	Sun Sep 21 10:07:06 2014 -0500
@@ -1127,7 +1127,7 @@
         text = fctx.data()
         flog = self.file(fname)
         fparent1 = manifest1.get(fname, nullid)
-        fparent2 = fparent2o = manifest2.get(fname, nullid)
+        fparent2 = manifest2.get(fname, nullid)
 
         meta = {}
         copy = fctx.renamed()
@@ -1193,9 +1193,8 @@
         if fparent2 != nullid or flog.cmp(fparent1, text) or meta:
             changelist.append(fname)
             return flog.add(text, meta, tr, linkrev, fparent1, fparent2)
-
         # are just the flags changed during merge?
-        if fparent1 != fparent2o and manifest1.flags(fname) != fctx.flags():
+        elif fname in manifest1 and manifest1.flags(fname) != fctx.flags():
             changelist.append(fname)
 
         return fparent1