diff mercurial/dirstate.py @ 47998:7ab99007fce5

dirstate: move the copymap drop inside dropfile Since the copymap is part of the dirstatemap it make more sense for the dirstatemap to manage it directly. This is part of a generic effort to move unified logic at lower level and to clean up higher level API. Differential Revision: https://phab.mercurial-scm.org/D11417
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 02 Sep 2021 02:44:12 +0200
parents 496a8e383aeb
children c0157aca5bf5
line wrap: on
line diff
--- a/mercurial/dirstate.py	Tue Sep 14 18:25:51 2021 +0200
+++ b/mercurial/dirstate.py	Thu Sep 02 02:44:12 2021 +0200
@@ -749,7 +749,6 @@
         if self._map.dropfile(filename):
             self._dirty = True
             self._updatedfiles.add(filename)
-            self._map.copymap.pop(filename, None)
 
     def _discoverpath(self, path, normed, ignoremissing, exists, storemap):
         if exists is None: