dirstate: replace the use of _normallookup in `setparents`
normal lookup is a complicated function that we want to get rid of.
Differential Revision: https://phab.mercurial-scm.org/D11431
--- a/mercurial/dirstate.py Wed Sep 15 18:05:39 2021 +0200
+++ b/mercurial/dirstate.py Wed Sep 15 18:16:16 2021 +0200
@@ -401,7 +401,12 @@
source = self._map.copymap.get(f)
if source:
copies[f] = source
- self._normallookup(f)
+ self._map.reset_state(
+ f,
+ wc_tracked=True,
+ p1_tracked=True,
+ possibly_dirty=True,
+ )
# Also fix up otherparent markers
elif s.from_p2:
source = self._map.copymap.get(f)