D10976: dirstate: drop last explicite `state` usage in status

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Sun Jul 4 21:55:39 UTC 2021


marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  Given that the previous conditional we can safely use `tracked` here.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D10976

AFFECTED FILES
  mercurial/dirstate.py

CHANGE DETAILS

diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py
--- a/mercurial/dirstate.py
+++ b/mercurial/dirstate.py
@@ -1321,7 +1321,7 @@
                 aadd(fn)
             elif t.removed:
                 radd(fn)
-            elif state == b'n':
+            elif t.tracked:
                 if (
                     size >= 0
                     and (



To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel


More information about the Mercurial-devel mailing list