diff mercurial/dirstate.py @ 47983:ffde999a3ea9

dirstate: same logic as what we did for `_drop` This is part of the dirstatemap so let the dirstatemap deal with it. Differential Revision: https://phab.mercurial-scm.org/D11423
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 15 Sep 2021 10:05:25 +0200
parents 36c0d738c330
children 6255a0d33c45
line wrap: on
line diff
--- a/mercurial/dirstate.py	Wed Sep 15 09:28:17 2021 +0200
+++ b/mercurial/dirstate.py	Wed Sep 15 10:05:25 2021 +0200
@@ -738,7 +738,6 @@
     def _add(self, filename):
         """internal function to mark a file as added"""
         self._addpath(filename, added=True)
-        self._map.copymap.pop(filename, None)
 
     def _drop(self, filename):
         """internal function to drop a file from the dirstate"""