# HG changeset patch # User Dirkjan Ochtman # Date 2008-07-21 11:22:11 # Node ID 835a01a0cdb35dc8aa23945b805cc06d9366439c # Parent a38dff85d31fb01827909d17b0c5419cc853132c context: fix workingctx's __contains__ method diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -497,7 +497,7 @@ class workingctx(changectx): return True def __contains__(self, key): - return self._dirstate[f] not in "?r" + return self._dirstate[key] not in "?r" def __getattr__(self, name): if name == '_status':