##// END OF EJS Templates
dirstatemap: remove `_insert_entry`...
Raphaël Gomès -
r49994:77dfde41 default
parent child Browse files
Show More
@@ -101,12 +101,6 b' class _dirstatemapcommon:'
101 101 def _refresh_entry(self, f, entry):
102 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
110 104 def _drop_entry(self, f):
111 105 """remove any entry for file f
112 106
@@ -511,7 +505,7 b' class dirstatemap(_dirstatemapcommon):'
511 505 has_meaningful_mtime=has_meaningful_mtime,
512 506 parentfiledata=parentfiledata,
513 507 )
514 self._insert_entry(filename, entry)
508 self._map[filename] = entry
515 509
516 510 def set_tracked(self, filename):
517 511 new = False
@@ -522,7 +516,7 b' class dirstatemap(_dirstatemapcommon):'
522 516 wc_tracked=True,
523 517 )
524 518
525 self._insert_entry(filename, entry)
519 self._map[filename] = entry
526 520 new = True
527 521 elif not entry.tracked:
528 522 self._dirs_incr(filename, entry)
@@ -541,9 +535,6 b' class dirstatemap(_dirstatemapcommon):'
541 535 if not entry.any_tracked:
542 536 self._map.pop(f, None)
543 537
544 def _insert_entry(self, f, entry):
545 self._map[f] = entry
546
547 538 def _drop_entry(self, f):
548 539 self._map.pop(f, None)
549 540 self.copymap.pop(f, None)
@@ -718,9 +709,6 b' if rustmod is not None:'
718 709 else:
719 710 self._map.addfile(f, entry)
720 711
721 def _insert_entry(self, f, entry):
722 self._map.addfile(f, entry)
723
724 712 def set_tracked(self, f):
725 713 return self._map.set_tracked(f)
726 714
General Comments 0
You need to be logged in to leave comments. Login now