# HG changeset patch # User Patrick Mezard # Date 1334136552 -7200 # Node ID 80b3d574881f1227c9f26f65f287ad362d4bdfe2 # Parent 2cbd7dd0cc1fa78e3f9d7eb69973a370c366c253 context: revert workingctx.ancestors() followfirst option It was introduced by mistake in 352053e6cd8e. diff -r 2cbd7dd0cc1f -r 80b3d574881f mercurial/context.py --- a/mercurial/context.py Wed Apr 11 11:25:34 2012 +0200 +++ b/mercurial/context.py Wed Apr 11 11:29:12 2012 +0200 @@ -1003,10 +1003,9 @@ finally: wlock.release() - def ancestors(self, followfirst=False): - cut = followfirst and 1 or None + def ancestors(self): for a in self._repo.changelog.ancestors( - *[p.rev() for p in self._parents[:cut]]): + *[p.rev() for p in self._parents]): yield changectx(self._repo, a) def undelete(self, list):