##// END OF EJS Templates
dirstatemap: drop legacy method on the dirstatemap wrapper...
marmoute -
r48949:25836b00 default
parent child Browse files
Show More
@@ -803,42 +803,3 b' if rustmod is not None:'
803 def __setitem__(self, key, value):
803 def __setitem__(self, key, value):
804 assert isinstance(value, DirstateItem)
804 assert isinstance(value, DirstateItem)
805 self._map.set_dirstate_item(key, value)
805 self._map.set_dirstate_item(key, value)
806
807 ### Legacy method we need to get rid of
808
809 def addfile(
810 self,
811 f,
812 mode=0,
813 size=None,
814 mtime=None,
815 added=False,
816 merged=False,
817 from_p2=False,
818 possibly_dirty=False,
819 ):
820 if added:
821 assert not possibly_dirty
822 assert not from_p2
823 item = DirstateItem.new_added()
824 elif merged:
825 assert not possibly_dirty
826 assert not from_p2
827 item = DirstateItem.new_merged()
828 elif from_p2:
829 assert not possibly_dirty
830 item = DirstateItem.new_from_p2()
831 elif possibly_dirty:
832 item = DirstateItem.new_possibly_dirty()
833 else:
834 assert size is not None
835 assert mtime is not None
836 size = size & rangemask
837 mtime = mtime & rangemask
838 item = DirstateItem.new_normal(mode, size, mtime)
839 self._map.addfile(f, item)
840 if added:
841 self.copymap.pop(f, None)
842
843 def removefile(self, *args, **kwargs):
844 return self._map.removefile(*args, **kwargs)
General Comments 0
You need to be logged in to leave comments. Login now