changeset 16410:80b3d574881f

context: revert workingctx.ancestors() followfirst option It was introduced by mistake in 352053e6cd8e.
author Patrick Mezard <patrick@mezard.eu>
date Wed, 11 Apr 2012 11:29:12 +0200
parents 2cbd7dd0cc1f
children 4c2edcd84175
files mercurial/context.py
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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):