##// END OF EJS Templates
dirstatemap: move `set_possibly_dirty` out of the common methods...
Raphaël Gomès -
r49998:079aaf99 default
parent child Browse files
Show More
@@ -110,12 +110,6 b' class _dirstatemapcommon:'
110
110
111 ### method to manipulate the entries
111 ### method to manipulate the entries
112
112
113 def set_possibly_dirty(self, filename):
114 """record that the current state of the file on disk is unknown"""
115 entry = self[filename]
116 entry.set_possibly_dirty()
117 self._refresh_entry(filename, entry)
118
119 def set_untracked(self, f):
113 def set_untracked(self, f):
120 """Mark a file as no longer tracked in the dirstate map"""
114 """Mark a file as no longer tracked in the dirstate map"""
121 entry = self.get(f)
115 entry = self.get(f)
@@ -531,6 +525,12 b' class dirstatemap(_dirstatemapcommon):'
531 self._refresh_entry(filename, entry)
525 self._refresh_entry(filename, entry)
532 self.copymap.pop(filename, None)
526 self.copymap.pop(filename, None)
533
527
528 def set_possibly_dirty(self, filename):
529 """record that the current state of the file on disk is unknown"""
530 entry = self[filename]
531 entry.set_possibly_dirty()
532 self._refresh_entry(filename, entry)
533
534 def _refresh_entry(self, f, entry):
534 def _refresh_entry(self, f, entry):
535 if not entry.any_tracked:
535 if not entry.any_tracked:
536 self._map.pop(f, None)
536 self._map.pop(f, None)
@@ -715,6 +715,9 b' if rustmod is not None:'
715 def set_clean(self, filename, mode, size, mtime):
715 def set_clean(self, filename, mode, size, mtime):
716 self._map.set_clean(filename, mode, size, mtime)
716 self._map.set_clean(filename, mode, size, mtime)
717
717
718 def set_possibly_dirty(self, f):
719 self._map.set_possibly_dirty(f)
720
718 def reset_state(
721 def reset_state(
719 self,
722 self,
720 filename,
723 filename,
General Comments 0
You need to be logged in to leave comments. Login now