mercurial/dirstate.py
changeset 47524 69a463a4f193
parent 47523 b76d54b90dc9
child 47525 fe4641cf9b72
--- a/mercurial/dirstate.py	Sat Jul 03 20:57:44 2021 +0200
+++ b/mercurial/dirstate.py	Sat Jul 03 20:59:26 2021 +0200
@@ -450,7 +450,6 @@
         from_p2=False,
         possibly_dirty=False,
     ):
-        oldstate = self[f]
         entry = self._map.get(f)
         if state == b'a' or entry is not None and entry.removed:
             scmutil.checkfilename(f)
@@ -471,7 +470,6 @@
         self._updatedfiles.add(f)
         self._map.addfile(
             f,
-            oldstate,
             state=state,
             mode=mode,
             size=size,