context: fix workingctx.__contains__
authorPatrick Mezard <pmezard@gmail.com>
Mon, 13 Apr 2009 19:47:11 +0200
changeset 8061 26316dda374f
parent 8054 b13cc762314a
child 8062 f4749d6fb433
context: fix workingctx.__contains__
mercurial/context.py
--- a/mercurial/context.py	Mon Apr 13 14:33:47 2009 +0200
+++ b/mercurial/context.py	Mon Apr 13 19:47:11 2009 +0200
@@ -513,7 +513,7 @@
         return True
 
     def __contains__(self, key):
-        return self._dirstate[key] not in "?r"
+        return self._repo.dirstate[key] not in "?r"
 
     def _manifest(self):
         """generate a manifest corresponding to the working directory"""