mercurial/localrepo.py
changeset 2846 35af2e56f15a
parent 2844 e196aa1df169
child 2848 e78cad1f6b1f
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -1792,7 +1792,7 @@ class localrepository(object):
                     # we need to reset the dirstate if the file was added
                     get[f] = m2[f]
 
-                if not s and mfw[f] != mf2[f]:
+                if not s and mfw.execf(f) != mf2.execf(f):
                     if force:
                         self.ui.debug(_(" updating permissions for %s\n") % f)
                         util.set_exec(self.wjoin(f), mf2.execf(f))