mercurial/revlog.py
changeset 44034 ab595920de0e
parent 44014 8042856c90b6
child 44047 de5d34ca01bd
equal deleted inserted replaced
44032:2d4cad94d08a 44034:ab595920de0e
    63     dagop,
    63     dagop,
    64     error,
    64     error,
    65     mdiff,
    65     mdiff,
    66     policy,
    66     policy,
    67     pycompat,
    67     pycompat,
    68     revlogutils,
       
    69     templatefilters,
    68     templatefilters,
    70     util,
    69     util,
    71 )
    70 )
    72 from .interfaces import (
    71 from .interfaces import (
    73     repository,
    72     repository,
    74     util as interfaceutil,
    73     util as interfaceutil,
    75 )
    74 )
    76 from .revlogutils import (
    75 from .revlogutils import (
    77     deltas as deltautil,
    76     deltas as deltautil,
    78     flagutil,
    77     flagutil,
       
    78     nodemap as nodemaputil,
    79     sidedata as sidedatautil,
    79     sidedata as sidedatautil,
    80 )
    80 )
    81 from .utils import (
    81 from .utils import (
    82     storageutil,
    82     storageutil,
    83     stringutil,
    83     stringutil,
   222         util.nouideprecwarn(msg, b'5.3', stacklevel=2)
   222         util.nouideprecwarn(msg, b'5.3', stacklevel=2)
   223         return self._nodemap
   223         return self._nodemap
   224 
   224 
   225     @util.propertycache
   225     @util.propertycache
   226     def _nodemap(self):
   226     def _nodemap(self):
   227         nodemap = revlogutils.NodeMap({nullid: nullrev})
   227         nodemap = nodemaputil.NodeMap({nullid: nullrev})
   228         for r in range(0, len(self)):
   228         for r in range(0, len(self)):
   229             n = self[r][7]
   229             n = self[r][7]
   230             nodemap[n] = r
   230             nodemap[n] = r
   231         return nodemap
   231         return nodemap
   232 
   232 
   271         self.size = indexformatv0.size
   271         self.size = indexformatv0.size
   272 
   272 
   273     def parseindex(self, data, inline):
   273     def parseindex(self, data, inline):
   274         s = self.size
   274         s = self.size
   275         index = []
   275         index = []
   276         nodemap = revlogutils.NodeMap({nullid: nullrev})
   276         nodemap = nodemaputil.NodeMap({nullid: nullrev})
   277         n = off = 0
   277         n = off = 0
   278         l = len(data)
   278         l = len(data)
   279         while off + s <= l:
   279         while off + s <= l:
   280             cur = data[off : off + s]
   280             cur = data[off : off + s]
   281             off += s
   281             off += s