# HG changeset patch # User Pierre-Yves David # Date 1625358119 -7200 # 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 -r 174d0bcce2eb -r e53a42dce923 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 (