hgext/largefiles/reposetup.py
branchstable
changeset 23383 7f8d27e1f862
parent 23090 24600c9d7f4e
child 23394 b5e2128ce9e6
--- a/hgext/largefiles/reposetup.py	Thu Nov 20 16:30:57 2014 -0800
+++ b/hgext/largefiles/reposetup.py	Tue Nov 25 18:37:28 2014 +0900
@@ -170,6 +170,7 @@
                     else:
                         tocheck = unsure + modified + added + clean
                         modified, added, clean = [], [], []
+                        checkexec = self.dirstate._checkexec
 
                         for lfile in tocheck:
                             standin = lfutil.standin(lfile)
@@ -177,7 +178,8 @@
                                 abslfile = self.wjoin(lfile)
                                 if ((ctx1[standin].data().strip() !=
                                      lfutil.hashfile(abslfile)) or
-                                    (('x' in ctx1.flags(standin)) !=
+                                    (checkexec and
+                                     ('x' in ctx1.flags(standin)) !=
                                      bool(lfutil.getexecutable(abslfile)))):
                                     modified.append(lfile)
                                 elif listclean: