Mercurial > public > mercurial-scm > hg
comparison mercurial/context.py @ 48093:5437a0254590
dirstate-item: use `tracked` instead of the `state` in context
Differential Revision: https://phab.mercurial-scm.org/D11530
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 29 Sep 2021 14:57:54 +0200 |
parents | 06d57a91441e |
children | 3fe500d15e7c |
comparison
equal
deleted
inserted
replaced
48092:0dc9ced02a3b | 48093:5437a0254590 |
---|---|
1553 for f in d: | 1553 for f in d: |
1554 if d[f] != b'r': | 1554 if d[f] != b'r': |
1555 yield f | 1555 yield f |
1556 | 1556 |
1557 def __contains__(self, key): | 1557 def __contains__(self, key): |
1558 return self._repo.dirstate[key] not in b"?r" | 1558 return self._repo.dirstate.get_entry(key).tracked |
1559 | 1559 |
1560 def hex(self): | 1560 def hex(self): |
1561 return self._repo.nodeconstants.wdirhex | 1561 return self._repo.nodeconstants.wdirhex |
1562 | 1562 |
1563 @propertycache | 1563 @propertycache |