--- a/mercurial/context.py Wed Jul 02 15:24:43 2014 -0500
+++ b/mercurial/context.py Thu Jul 03 23:01:37 2014 -0500
@@ -976,9 +976,6 @@
def __nonzero__(self):
return True
- def __contains__(self, key):
- return self._repo.dirstate[key] not in "?r"
-
def _buildflagfunc(self):
# Create a fallback function for getting file flags when the
# filesystem doesn't support them
@@ -1179,6 +1176,9 @@
if d[f] != 'r':
yield f
+ def __contains__(self, key):
+ return self._repo.dirstate[key] not in "?r"
+
@propertycache
def _parents(self):
p = self._repo.dirstate.parents()