changeset 20223:37e2bd560805

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.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Fri, 15 Nov 2013 23:27:15 -0500
parents 228ae760942f
children 34d4a037dced
files mercurial/dagutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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]