# HG changeset patch # User Pierre-Yves David # Date 2021-07-04 00:21:59 # Node ID e53a42dce923386580c2acd2c575a5416f6a81db # Parent 174d0bcce2ebd218ac3e8c5e3a4300acd61f4781 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 diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py --- a/mercurial/dirstate.py +++ b/mercurial/dirstate.py @@ -1321,7 +1321,7 @@ class dirstate(object): aadd(fn) elif t.removed: radd(fn) - elif state == b'n': + elif t.tracked: if ( size >= 0 and (