context: revert workingctx.ancestors() followfirst option
authorPatrick Mezard <patrick@mezard.eu>
Wed, 11 Apr 2012 11:29:12 +0200
changeset 16410 80b3d574881f
parent 16409 2cbd7dd0cc1f
child 16411 4c2edcd84175
context: revert workingctx.ancestors() followfirst option It was introduced by mistake in 352053e6cd8e.
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):