Show More
@@ -101,6 +101,12 b' class _dirstatemapcommon(object):' | |||||
101 | def _refresh_entry(self, f, entry): |
|
101 | def _refresh_entry(self, f, entry): | |
102 | """record updated state of an entry""" |
|
102 | """record updated state of an entry""" | |
103 |
|
103 | |||
|
104 | def _insert_entry(self, f, entry): | |||
|
105 | """add a new dirstate entry (or replace an unrelated one) | |||
|
106 | ||||
|
107 | The fact it is actually new is the responsability of the caller | |||
|
108 | """ | |||
|
109 | ||||
104 | ### method to manipulate the entries |
|
110 | ### method to manipulate the entries | |
105 |
|
111 | |||
106 | def set_untracked(self, f): |
|
112 | def set_untracked(self, f): | |
@@ -403,6 +409,9 b' class dirstatemap(_dirstatemapcommon):' | |||||
403 | if not entry.any_tracked: |
|
409 | if not entry.any_tracked: | |
404 | self._map.pop(f, None) |
|
410 | self._map.pop(f, None) | |
405 |
|
411 | |||
|
412 | def _insert_entry(self, f, entry): | |||
|
413 | self._map[f] = entry | |||
|
414 | ||||
406 | def set_possibly_dirty(self, filename): |
|
415 | def set_possibly_dirty(self, filename): | |
407 | """record that the current state of the file on disk is unknown""" |
|
416 | """record that the current state of the file on disk is unknown""" | |
408 | self[filename].set_possibly_dirty() |
|
417 | self[filename].set_possibly_dirty() | |
@@ -784,6 +793,9 b' if rustmod is not None:' | |||||
784 | else: |
|
793 | else: | |
785 | self._map.addfile(f, entry) |
|
794 | self._map.addfile(f, entry) | |
786 |
|
795 | |||
|
796 | def _insert_entry(self, f, entry): | |||
|
797 | self._map.addfile(f, entry) | |||
|
798 | ||||
787 | def set_possibly_dirty(self, filename): |
|
799 | def set_possibly_dirty(self, filename): | |
788 | """record that the current state of the file on disk is unknown""" |
|
800 | """record that the current state of the file on disk is unknown""" | |
789 | entry = self[filename] |
|
801 | entry = self[filename] |
General Comments 0
You need to be logged in to leave comments.
Login now