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.
--- 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]