comparison mercurial/dirstate.py @ 47992:14fa2e583422

dirstate: replace the use of `_normallookup` in `rebuild` Normal lookup is a complicated function that we want to get rid of. Differential Revision: https://phab.mercurial-scm.org/D11432
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 15 Sep 2021 18:12:55 +0200
parents 625b84c1abdd
children ccb9cc47b7b6
comparison
equal deleted inserted replaced
47991:625b84c1abdd 47992:14fa2e583422
851 if self._origpl is None: 851 if self._origpl is None:
852 self._origpl = self._pl 852 self._origpl = self._pl
853 self._map.setparents(parent, self._nodeconstants.nullid) 853 self._map.setparents(parent, self._nodeconstants.nullid)
854 854
855 for f in to_lookup: 855 for f in to_lookup:
856 self._normallookup(f) 856
857 if self.in_merge:
858 self.set_tracked(f)
859 else:
860 self._map.reset_state(
861 f,
862 wc_tracked=True,
863 p1_tracked=True,
864 possibly_dirty=True,
865 )
866 self._updatedfiles.add(f)
857 for f in to_drop: 867 for f in to_drop:
858 if self._map.dropfile(f): 868 if self._map.dropfile(f):
859 self._updatedfiles.add(f) 869 self._updatedfiles.add(f)
860 870
861 self._dirty = True 871 self._dirty = True