--- a/mercurial/context.py Wed Aug 14 16:37:11 2013 -0500
+++ b/mercurial/context.py Wed Aug 14 16:37:59 2013 -0500
@@ -1038,6 +1038,11 @@
return sorted(self._repo.dirstate.walk(match, sorted(self.substate),
True, False))
+ def ancestors(self):
+ for a in self._repo.changelog.ancestors(
+ [p.rev() for p in self._parents]):
+ yield changectx(self._repo, a)
+
class workingctx(commitablectx):
"""A workingctx object makes access to data related to
the current working directory convenient.
@@ -1133,11 +1138,6 @@
finally:
wlock.release()
- def ancestors(self):
- for a in self._repo.changelog.ancestors(
- [p.rev() for p in self._parents]):
- yield changectx(self._repo, a)
-
def undelete(self, list):
pctxs = self.parents()
wlock = self._repo.wlock()