Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/context.py @ 6845:835a01a0cdb3
context: fix workingctx's __contains__ method
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Mon, 21 Jul 2008 13:22:11 +0200 |
parents | fec1da46006e |
children | 54b7c79575fa |
comparison
equal
deleted
inserted
replaced
6844:a38dff85d31f | 6845:835a01a0cdb3 |
---|---|
495 | 495 |
496 def __nonzero__(self): | 496 def __nonzero__(self): |
497 return True | 497 return True |
498 | 498 |
499 def __contains__(self, key): | 499 def __contains__(self, key): |
500 return self._dirstate[f] not in "?r" | 500 return self._dirstate[key] not in "?r" |
501 | 501 |
502 def __getattr__(self, name): | 502 def __getattr__(self, name): |
503 if name == '_status': | 503 if name == '_status': |
504 self._status = self._repo.status(unknown=True) | 504 self._status = self._repo.status(unknown=True) |
505 return self._status | 505 return self._status |