# HG changeset patch # User Patrick Mezard # Date 2009-04-13 17:47:11 # Node ID 26316dda374f285125ee5a20e6fe127279d91027 # Parent b13cc762314a248a1e6ab6e7b5b1ab331a9bbd6e context: fix workingctx.__contains__ diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -513,7 +513,7 @@ class workingctx(changectx): 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"""