changeset 47534:e53a42dce923

dirstate: drop last explicite `state` usage in status Given that the previous conditional we can safely use `tracked` here. Differential Revision: https://phab.mercurial-scm.org/D10976
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sun, 04 Jul 2021 02:21:59 +0200
parents 174d0bcce2eb
children 6025353c9c55
files mercurial/dirstate.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/dirstate.py	Sun Jul 04 02:15:41 2021 +0200
+++ b/mercurial/dirstate.py	Sun Jul 04 02:21:59 2021 +0200
@@ -1321,7 +1321,7 @@
                 aadd(fn)
             elif t.removed:
                 radd(fn)
-            elif state == b'n':
+            elif t.tracked:
                 if (
                     size >= 0
                     and (