##// END OF EJS Templates
dirstate: move the copymap drop inside dropfile...
marmoute -
r48784:7ab99007 default
parent child Browse files
Show More
@@ -749,7 +749,6 b' class dirstate(object):'
749 if self._map.dropfile(filename):
749 if self._map.dropfile(filename):
750 self._dirty = True
750 self._dirty = True
751 self._updatedfiles.add(filename)
751 self._updatedfiles.add(filename)
752 self._map.copymap.pop(filename, None)
753
752
754 def _discoverpath(self, path, normed, ignoremissing, exists, storemap):
753 def _discoverpath(self, path, normed, ignoremissing, exists, storemap):
755 if exists is None:
754 if exists is None:
@@ -316,6 +316,7 b' class dirstatemap(object):'
316 old_entry = self._map.pop(f, None)
316 old_entry = self._map.pop(f, None)
317 self._dirs_decr(f, old_entry=old_entry)
317 self._dirs_decr(f, old_entry=old_entry)
318 self.nonnormalset.discard(f)
318 self.nonnormalset.discard(f)
319 self.copymap.pop(f, None)
319 return old_entry is not None
320 return old_entry is not None
320
321
321 def clearambiguoustimes(self, files, now):
322 def clearambiguoustimes(self, files, now):
@@ -652,8 +653,9 b' if rustmod is not None:'
652 def removefile(self, *args, **kwargs):
653 def removefile(self, *args, **kwargs):
653 return self._rustmap.removefile(*args, **kwargs)
654 return self._rustmap.removefile(*args, **kwargs)
654
655
655 def dropfile(self, *args, **kwargs):
656 def dropfile(self, f, *args, **kwargs):
656 return self._rustmap.dropfile(*args, **kwargs)
657 self._rustmap.copymap().pop(f, None)
658 return self._rustmap.dropfile(f, *args, **kwargs)
657
659
658 def clearambiguoustimes(self, *args, **kwargs):
660 def clearambiguoustimes(self, *args, **kwargs):
659 return self._rustmap.clearambiguoustimes(*args, **kwargs)
661 return self._rustmap.clearambiguoustimes(*args, **kwargs)
General Comments 0
You need to be logged in to leave comments. Login now