changeset 6771 | f5d7cfcbb4d3 |
parent 6764 | 8db64464d136 |
child 6772 | 84b53eef9964 |
--- a/mercurial/context.py Fri Jul 11 18:46:02 2008 -0500 +++ b/mercurial/context.py Fri Jul 11 18:46:02 2008 -0500 @@ -501,6 +501,9 @@ def __nonzero__(self): return True + def __contains__(self, key): + return self._dirstate[f] not in "?r" + def __getattr__(self, name): if name == '_status': self._status = self._repo.status(unknown=True)