branch | stable |
changeset 12999 | acd69df118ab |
parent 12731 | 95514b58709d |
child 13001 | cc4e13c92dfa |
--- a/mercurial/context.py Mon Nov 15 10:55:54 2010 -0600 +++ b/mercurial/context.py Mon Nov 15 17:00:43 2010 -0600 @@ -818,6 +818,11 @@ 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: