[Updated] D11530: dirstate-item: use `tracked` instead of the `state` in context

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Fri Oct 1 20:46:55 UTC 2021


Closed by commit rHG5437a0254590: dirstate-item: use `tracked` instead of the `state` in context (authored by marmoute).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D11530?vs=30457&id=30530

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D11530/new/

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

AFFECTED FILES
  mercurial/context.py

CHANGE DETAILS

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -1555,7 +1555,7 @@
                 yield f
 
     def __contains__(self, key):
-        return self._repo.dirstate[key] not in b"?r"
+        return self._repo.dirstate.get_entry(key).tracked
 
     def hex(self):
         return self._repo.nodeconstants.wdirhex



To: marmoute, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20211001/76fa252a/attachment-0002.html>


More information about the Mercurial-patches mailing list