hgext/largefiles/reposetup.py
branchstable
changeset 23383 7f8d27e1f862
parent 23090 24600c9d7f4e
child 23394 b5e2128ce9e6
equal deleted inserted replaced
23381:cc0ff93d0c0c 23383:7f8d27e1f862
   168                                     clean.append(lfile)
   168                                     clean.append(lfile)
   169                                 lfdirstate.normal(lfile)
   169                                 lfdirstate.normal(lfile)
   170                     else:
   170                     else:
   171                         tocheck = unsure + modified + added + clean
   171                         tocheck = unsure + modified + added + clean
   172                         modified, added, clean = [], [], []
   172                         modified, added, clean = [], [], []
       
   173                         checkexec = self.dirstate._checkexec
   173 
   174 
   174                         for lfile in tocheck:
   175                         for lfile in tocheck:
   175                             standin = lfutil.standin(lfile)
   176                             standin = lfutil.standin(lfile)
   176                             if standin in ctx1:
   177                             if standin in ctx1:
   177                                 abslfile = self.wjoin(lfile)
   178                                 abslfile = self.wjoin(lfile)
   178                                 if ((ctx1[standin].data().strip() !=
   179                                 if ((ctx1[standin].data().strip() !=
   179                                      lfutil.hashfile(abslfile)) or
   180                                      lfutil.hashfile(abslfile)) or
   180                                     (('x' in ctx1.flags(standin)) !=
   181                                     (checkexec and
       
   182                                      ('x' in ctx1.flags(standin)) !=
   181                                      bool(lfutil.getexecutable(abslfile)))):
   183                                      bool(lfutil.getexecutable(abslfile)))):
   182                                     modified.append(lfile)
   184                                     modified.append(lfile)
   183                                 elif listclean:
   185                                 elif listclean:
   184                                     clean.append(lfile)
   186                                     clean.append(lfile)
   185                             else:
   187                             else: