Show More
@@ -116,14 +116,6 b' class _dirstatemapcommon:' | |||||
116 | entry.set_possibly_dirty() |
|
116 | entry.set_possibly_dirty() | |
117 | self._refresh_entry(filename, entry) |
|
117 | self._refresh_entry(filename, entry) | |
118 |
|
118 | |||
119 | def set_clean(self, filename, mode, size, mtime): |
|
|||
120 | """mark a file as back to a clean state""" |
|
|||
121 | entry = self[filename] |
|
|||
122 | size = size & rangemask |
|
|||
123 | entry.set_clean(mode, size, mtime) |
|
|||
124 | self._refresh_entry(filename, entry) |
|
|||
125 | self.copymap.pop(filename, None) |
|
|||
126 |
|
||||
127 | def set_untracked(self, f): |
|
119 | def set_untracked(self, f): | |
128 | """Mark a file as no longer tracked in the dirstate map""" |
|
120 | """Mark a file as no longer tracked in the dirstate map""" | |
129 | entry = self.get(f) |
|
121 | entry = self.get(f) | |
@@ -531,6 +523,14 b' class dirstatemap(_dirstatemapcommon):' | |||||
531 | self._refresh_entry(filename, entry) |
|
523 | self._refresh_entry(filename, entry) | |
532 | return new |
|
524 | return new | |
533 |
|
525 | |||
|
526 | def set_clean(self, filename, mode, size, mtime): | |||
|
527 | """mark a file as back to a clean state""" | |||
|
528 | entry = self[filename] | |||
|
529 | size = size & rangemask | |||
|
530 | entry.set_clean(mode, size, mtime) | |||
|
531 | self._refresh_entry(filename, entry) | |||
|
532 | self.copymap.pop(filename, None) | |||
|
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) | |
@@ -712,6 +712,9 b' if rustmod is not None:' | |||||
712 | def set_tracked(self, f): |
|
712 | def set_tracked(self, f): | |
713 | return self._map.set_tracked(f) |
|
713 | return self._map.set_tracked(f) | |
714 |
|
714 | |||
|
715 | def set_clean(self, filename, mode, size, mtime): | |||
|
716 | self._map.set_clean(filename, mode, size, mtime) | |||
|
717 | ||||
715 | def reset_state( |
|
718 | def reset_state( | |
716 | self, |
|
719 | self, | |
717 | filename, |
|
720 | filename, |
General Comments 0
You need to be logged in to leave comments.
Login now