diff mercurial/revlog.py @ 16867:1093ad1e8903

revlog: descendants(*revs) becomes descendants(revs) (API) Once again making the API more rational, as with ancestors.
author Bryan O'Sullivan <bryano@fb.com>
date Fri, 01 Jun 2012 12:45:16 -0700
parents 91f3ac205816
children eb88ed4269c5
line wrap: on
line diff
--- a/mercurial/revlog.py	Fri Jun 01 12:37:18 2012 -0700
+++ b/mercurial/revlog.py	Fri Jun 01 12:45:16 2012 -0700
@@ -398,7 +398,7 @@
                     seen.add(parent)
                     yield parent
 
-    def descendants(self, *revs):
+    def descendants(self, revs):
         """Generate the descendants of 'revs' in revision order.
 
         Yield a sequence of revision numbers starting with a child of
@@ -700,7 +700,7 @@
     def descendant(self, start, end):
         if start == nullrev:
             return True
-        for i in self.descendants(start):
+        for i in self.descendants([start]):
             if i == end:
                 return True
             elif i > end: