Show More
@@ -109,6 +109,12 b' class _dirstatemapcommon(object):' | |||||
109 |
|
109 | |||
110 | ### method to manipulate the entries |
|
110 | ### method to manipulate the entries | |
111 |
|
111 | |||
|
112 | def set_possibly_dirty(self, filename): | |||
|
113 | """record that the current state of the file on disk is unknown""" | |||
|
114 | entry = self[filename] | |||
|
115 | entry.set_possibly_dirty() | |||
|
116 | self._refresh_entry(filename, entry) | |||
|
117 | ||||
112 | def set_tracked(self, filename): |
|
118 | def set_tracked(self, filename): | |
113 | new = False |
|
119 | new = False | |
114 | entry = self.get(filename) |
|
120 | entry = self.get(filename) | |
@@ -443,10 +449,6 b' class dirstatemap(_dirstatemapcommon):' | |||||
443 | def _insert_entry(self, f, entry): |
|
449 | def _insert_entry(self, f, entry): | |
444 | self._map[f] = entry |
|
450 | self._map[f] = entry | |
445 |
|
451 | |||
446 | def set_possibly_dirty(self, filename): |
|
|||
447 | """record that the current state of the file on disk is unknown""" |
|
|||
448 | self[filename].set_possibly_dirty() |
|
|||
449 |
|
||||
450 | def set_clean(self, filename, mode, size, mtime): |
|
452 | def set_clean(self, filename, mode, size, mtime): | |
451 | """mark a file as back to a clean state""" |
|
453 | """mark a file as back to a clean state""" | |
452 | entry = self[filename] |
|
454 | entry = self[filename] | |
@@ -799,12 +801,6 b' if rustmod is not None:' | |||||
799 | def _insert_entry(self, f, entry): |
|
801 | def _insert_entry(self, f, entry): | |
800 | self._map.addfile(f, entry) |
|
802 | self._map.addfile(f, entry) | |
801 |
|
803 | |||
802 | def set_possibly_dirty(self, filename): |
|
|||
803 | """record that the current state of the file on disk is unknown""" |
|
|||
804 | entry = self[filename] |
|
|||
805 | entry.set_possibly_dirty() |
|
|||
806 | self._map.set_dirstate_item(filename, entry) |
|
|||
807 |
|
||||
808 | def set_clean(self, filename, mode, size, mtime): |
|
804 | def set_clean(self, filename, mode, size, mtime): | |
809 | """mark a file as back to a clean state""" |
|
805 | """mark a file as back to a clean state""" | |
810 | entry = self[filename] |
|
806 | entry = self[filename] |
General Comments 0
You need to be logged in to leave comments.
Login now