contrib/perf.py
changeset 30793 b6f455a6e4d6
parent 30584 be5b2098a817
child 30796 168ef0a4eb3b
equal deleted inserted replaced
30792:4215dc1b708b 30793:b6f455a6e4d6
    32     copies,
    32     copies,
    33     error,
    33     error,
    34     extensions,
    34     extensions,
    35     mdiff,
    35     mdiff,
    36     merge,
    36     merge,
    37     revlog,
       
    38     util,
    37     util,
    39 )
    38 )
    40 
    39 
    41 # for "historical portability":
    40 # for "historical portability":
    42 # try to import modules separately (in dict order), and ignore
    41 # try to import modules separately (in dict order), and ignore
   987             chunkstart = start(rev)
   986             chunkstart = start(rev)
   988             if inline:
   987             if inline:
   989                 chunkstart += (rev + 1) * iosize
   988                 chunkstart += (rev + 1) * iosize
   990             chunklength = length(rev)
   989             chunklength = length(rev)
   991             b = buffer(data, chunkstart - offset, chunklength)
   990             b = buffer(data, chunkstart - offset, chunklength)
   992             revlog.decompress(b)
   991             r.decompress(b)
   993 
   992 
   994     def dopatch(text, bins):
   993     def dopatch(text, bins):
   995         if not cache:
   994         if not cache:
   996             r.clearcaches()
   995             r.clearcaches()
   997         mdiff.patches(text, bins)
   996         mdiff.patches(text, bins)