hgext/sparse.py
changeset 44452 9d2b2df2c2ba
parent 43506 9f70512ae2cf
child 45565 c1d0f83d62c4
equal deleted inserted replaced
44449:ff72bd52d56a 44452:9d2b2df2c2ba
   244                 changedfiles = [f for f in changedfiles if matcher(f)]
   244                 changedfiles = [f for f in changedfiles if matcher(f)]
   245 
   245 
   246             if changedfiles is not None:
   246             if changedfiles is not None:
   247                 # In _rebuild, these files will be deleted from the dirstate
   247                 # In _rebuild, these files will be deleted from the dirstate
   248                 # when they are not found to be in allfiles
   248                 # when they are not found to be in allfiles
   249                 dirstatefilestoremove = set(f for f in self if not matcher(f))
   249                 dirstatefilestoremove = {f for f in self if not matcher(f)}
   250                 changedfiles = dirstatefilestoremove.union(changedfiles)
   250                 changedfiles = dirstatefilestoremove.union(changedfiles)
   251 
   251 
   252         return orig(self, parent, allfiles, changedfiles)
   252         return orig(self, parent, allfiles, changedfiles)
   253 
   253 
   254     extensions.wrapfunction(dirstate.dirstate, b'rebuild', _rebuild)
   254     extensions.wrapfunction(dirstate.dirstate, b'rebuild', _rebuild)