mercurial/dagutil.py
changeset 20223 37e2bd560805
parent 16687 e34106fa0dc3
child 20224 34d4a037dced
equal deleted inserted replaced
20222:228ae760942f 20223:37e2bd560805
   147 
   147 
   148 class revlogdag(revlogbaseddag):
   148 class revlogdag(revlogbaseddag):
   149     '''dag interface to a revlog'''
   149     '''dag interface to a revlog'''
   150 
   150 
   151     def __init__(self, revlog):
   151     def __init__(self, revlog):
   152         revlogbaseddag.__init__(self, revlog, set(xrange(len(revlog))))
   152         revlogbaseddag.__init__(self, revlog, set(revlog))
   153 
   153 
   154     def _getheads(self):
   154     def _getheads(self):
   155         return [r for r in self._revlog.headrevs() if r != nullrev]
   155         return [r for r in self._revlog.headrevs() if r != nullrev]
   156 
   156 
   157     def parents(self, ix):
   157     def parents(self, ix):