diff mercurial/dirstatemap.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/dirstatemap.py	Sun Jul 04 01:48:11 2021 +0200
+++ b/mercurial/dirstatemap.py	Sun Jul 04 01:57:28 2021 +0200
@@ -175,6 +175,7 @@
             size = FROM_P2
             mtime = AMBIGUOUS_TIME
         elif possibly_dirty:
+            state = b'n'
             size = NONNORMAL
             mtime = AMBIGUOUS_TIME
         else: