comparison mercurial/context.py @ 8061:26316dda374f

context: fix workingctx.__contains__
author Patrick Mezard <pmezard@gmail.com>
date Mon, 13 Apr 2009 19:47:11 +0200
parents 08cabecfa8a8
children aece3c9e62f1
comparison
equal deleted inserted replaced
8054:b13cc762314a 8061:26316dda374f
511 511
512 def __nonzero__(self): 512 def __nonzero__(self):
513 return True 513 return True
514 514
515 def __contains__(self, key): 515 def __contains__(self, key):
516 return self._dirstate[key] not in "?r" 516 return self._repo.dirstate[key] not in "?r"
517 517
518 def _manifest(self): 518 def _manifest(self):
519 """generate a manifest corresponding to the working directory""" 519 """generate a manifest corresponding to the working directory"""
520 520
521 man = self._parents[0].manifest().copy() 521 man = self._parents[0].manifest().copy()