Mercurial > public > mercurial-scm > hg-stable
diff mercurial/context.py @ 13001:cc4e13c92dfa
merge with stable
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 15 Nov 2010 17:05:54 -0600 |
parents | 4832717aed98 acd69df118ab |
children | 3da456d0c885 |
line wrap: on
line diff
--- a/mercurial/context.py Thu Nov 11 15:51:20 2010 +0100 +++ b/mercurial/context.py Mon Nov 15 17:05:54 2010 -0600 @@ -821,6 +821,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: