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