mercurial/revlog.py
changeset 33171 6d678ab1b10d
parent 32969 30d0cb279bac
child 33207 895ecec31c70
equal deleted inserted replaced
33166:5c9ad50fd62f 33171:6d678ab1b10d
   568 
   568 
   569         Returns a 2-tuple of (chain, stopped) where ``chain`` is a list of
   569         Returns a 2-tuple of (chain, stopped) where ``chain`` is a list of
   570         revs in ascending order and ``stopped`` is a bool indicating whether
   570         revs in ascending order and ``stopped`` is a bool indicating whether
   571         ``stoprev`` was hit.
   571         ``stoprev`` was hit.
   572         """
   572         """
       
   573         # Try C implementation.
       
   574         try:
       
   575             return self.index.deltachain(rev, stoprev, self._generaldelta)
       
   576         except AttributeError:
       
   577             pass
       
   578 
   573         chain = []
   579         chain = []
   574 
   580 
   575         # Alias to prevent attribute lookup in tight loop.
   581         # Alias to prevent attribute lookup in tight loop.
   576         index = self.index
   582         index = self.index
   577         generaldelta = self._generaldelta
   583         generaldelta = self._generaldelta