equal
deleted
inserted
replaced
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) |