[PATCH 6 of 8] context: revert workingctx.ancestors() followfirst option

Patrick Mezard patrick at mezard.eu
Wed Apr 11 05:08:43 CDT 2012


# HG changeset patch
# User Patrick Mezard <patrick at mezard.eu>
# Date 1334136552 -7200
# Node ID 5059d414905a40538c441c862fd2f2d41a3f8b2f
# Parent  5f0a8afe7fbf4ddc3a49f8976d01a20f8dc80350
context: revert workingctx.ancestors() followfirst option

It was introduced by mistake in 352053e6cd8e.

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -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):


More information about the Mercurial-devel mailing list