mercurial/context.py
changeset 19698 8d4a8f4eb404
parent 19697 8c95e74857c6
child 19699 9fbc193b2358
--- 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()