diff mercurial/dirstate.py @ 47528:80617f3c0f9a

dirstate: infer the 'n' state from `possibly_dirty` This flag is only used with 'n' so lets set the state based on that parameter in this case. Differential Revision: https://phab.mercurial-scm.org/D10970
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sun, 04 Jul 2021 01:57:28 +0200
parents c6b91a9c242a
children d3cf20328abd
line wrap: on
line diff
--- a/mercurial/dirstate.py	Sun Jul 04 01:48:11 2021 +0200
+++ b/mercurial/dirstate.py	Sun Jul 04 01:57:28 2021 +0200
@@ -530,7 +530,7 @@
                     return
                 elif entry.merged or entry.from_p2:
                     return
-        self._addpath(f, b'n', 0, possibly_dirty=True)
+        self._addpath(f, possibly_dirty=True)
         self._map.copymap.pop(f, None)
 
     def otherparent(self, f):