dirstate: drop last explicite `state` usage in status
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sun, 04 Jul 2021 02:21:59 +0200
changeset 47534 e53a42dce923
parent 47533 174d0bcce2eb
child 47535 6025353c9c55
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
mercurial/dirstate.py
--- 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 (