Show More
@@ -110,12 +110,6 class _dirstatemapcommon: | |||
|
110 | 110 | |
|
111 | 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 | 113 | def set_untracked(self, f): |
|
120 | 114 | """Mark a file as no longer tracked in the dirstate map""" |
|
121 | 115 | entry = self.get(f) |
@@ -531,6 +525,12 class dirstatemap(_dirstatemapcommon): | |||
|
531 | 525 | self._refresh_entry(filename, entry) |
|
532 | 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 | 534 | def _refresh_entry(self, f, entry): |
|
535 | 535 | if not entry.any_tracked: |
|
536 | 536 | self._map.pop(f, None) |
@@ -715,6 +715,9 if rustmod is not None: | |||
|
715 | 715 | def set_clean(self, filename, mode, size, mtime): |
|
716 | 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 | 721 | def reset_state( |
|
719 | 722 | self, |
|
720 | 723 | filename, |
General Comments 0
You need to be logged in to leave comments.
Login now