diff mercurial/context.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 8b7cd9a998f0
line wrap: on
line diff
--- a/mercurial/context.py	Fri Jun 01 12:37:18 2012 -0700
+++ b/mercurial/context.py	Fri Jun 01 12:45:16 2012 -0700
@@ -227,7 +227,7 @@
             yield changectx(self._repo, a)
 
     def descendants(self):
-        for d in self._repo.changelog.descendants(self._rev):
+        for d in self._repo.changelog.descendants([self._rev]):
             yield changectx(self._repo, d)
 
     def _fileinfo(self, path):