discovery: make revlogdag work on filtered repo
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Fri, 15 Nov 2013 23:27:15 -0500
changeset 20223 37e2bd560805
parent 20222 228ae760942f
child 20224 34d4a037dced
discovery: make revlogdag work on filtered repo The revlogdag class is a core part of discovery. We need its initialisation to exclude revision filtered out.
mercurial/dagutil.py
--- a/mercurial/dagutil.py	Sat Nov 16 11:53:44 2013 -0500
+++ b/mercurial/dagutil.py	Fri Nov 15 23:27:15 2013 -0500
@@ -149,7 +149,7 @@
     '''dag interface to a revlog'''
 
     def __init__(self, revlog):
-        revlogbaseddag.__init__(self, revlog, set(xrange(len(revlog))))
+        revlogbaseddag.__init__(self, revlog, set(revlog))
 
     def _getheads(self):
         return [r for r in self._revlog.headrevs() if r != nullrev]