##// END OF EJS Templates
workingctx: add __contains__ method
Matt Mackall -
r6771:f5d7cfcb default
parent child Browse files
Show More
@@ -501,6 +501,9 b' class workingctx(changectx):'
501 def __nonzero__(self):
501 def __nonzero__(self):
502 return True
502 return True
503
503
504 def __contains__(self, key):
505 return self._dirstate[f] not in "?r"
506
504 def __getattr__(self, name):
507 def __getattr__(self, name):
505 if name == '_status':
508 if name == '_status':
506 self._status = self._repo.status(unknown=True)
509 self._status = self._repo.status(unknown=True)
General Comments 0
You need to be logged in to leave comments. Login now