Show More
@@ -180,8 +180,8 b' class dirstatemap(object):' | |||||
180 | def reset_state( |
|
180 | def reset_state( | |
181 | self, |
|
181 | self, | |
182 | filename, |
|
182 | filename, | |
183 | wc_tracked, |
|
183 | wc_tracked=False, | |
184 | p1_tracked, |
|
184 | p1_tracked=False, | |
185 | p2_tracked=False, |
|
185 | p2_tracked=False, | |
186 | merged=False, |
|
186 | merged=False, | |
187 | clean_p1=False, |
|
187 | clean_p1=False, | |
@@ -206,7 +206,10 b' class dirstatemap(object):' | |||||
206 | self.copymap.pop(filename, None) |
|
206 | self.copymap.pop(filename, None) | |
207 |
|
207 | |||
208 | if not (p1_tracked or p2_tracked or wc_tracked): |
|
208 | if not (p1_tracked or p2_tracked or wc_tracked): | |
209 |
self. |
|
209 | old_entry = self._map.pop(filename, None) | |
|
210 | self._dirs_decr(filename, old_entry=old_entry) | |||
|
211 | self.nonnormalset.discard(filename) | |||
|
212 | self.copymap.pop(filename, None) | |||
210 | return |
|
213 | return | |
211 | elif merged: |
|
214 | elif merged: | |
212 | # XXX might be merged and removed ? |
|
215 | # XXX might be merged and removed ? | |
@@ -576,8 +579,8 b' if rustmod is not None:' | |||||
576 | def reset_state( |
|
579 | def reset_state( | |
577 | self, |
|
580 | self, | |
578 | filename, |
|
581 | filename, | |
579 | wc_tracked, |
|
582 | wc_tracked=False, | |
580 | p1_tracked, |
|
583 | p1_tracked=False, | |
581 | p2_tracked=False, |
|
584 | p2_tracked=False, | |
582 | merged=False, |
|
585 | merged=False, | |
583 | clean_p1=False, |
|
586 | clean_p1=False, |
General Comments 0
You need to be logged in to leave comments.
Login now