Commits

Matt Mackall  committed acd69df

context: walk both parents for workingctx.ancestors()

  • Participants
  • Parent commits 827aa09
  • Branches stable

Comments (0)

Files changed (1)

File mercurial/context.py

         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 remove(self, list, unlink=False):
         if unlink:
             for f in list: