##// END OF EJS Templates
debugdeltachain: r.start and r.length can be retrieved outside the loop
Paul Morelle -
r38127:b17fa904 default
parent child Browse files
Show More
@@ -629,6 +629,8 b' def debugdeltachain(ui, repo, file_=None'
629 opts = pycompat.byteskwargs(opts)
629 opts = pycompat.byteskwargs(opts)
630 r = cmdutil.openrevlog(repo, 'debugdeltachain', file_, opts)
630 r = cmdutil.openrevlog(repo, 'debugdeltachain', file_, opts)
631 index = r.index
631 index = r.index
632 start = r.start
633 length = r.length
632 generaldelta = r.version & revlog.FLAG_GENERALDELTA
634 generaldelta = r.version & revlog.FLAG_GENERALDELTA
633 withsparseread = getattr(r, '_withsparseread', False)
635 withsparseread = getattr(r, '_withsparseread', False)
634
636
@@ -676,8 +678,6 b' def debugdeltachain(ui, repo, file_=None'
676 comp, uncomp, deltatype, chain, chainsize = revinfo(rev)
678 comp, uncomp, deltatype, chain, chainsize = revinfo(rev)
677 chainbase = chain[0]
679 chainbase = chain[0]
678 chainid = chainbases.setdefault(chainbase, len(chainbases) + 1)
680 chainid = chainbases.setdefault(chainbase, len(chainbases) + 1)
679 start = r.start
680 length = r.length
681 basestart = start(chainbase)
681 basestart = start(chainbase)
682 revstart = start(rev)
682 revstart = start(rev)
683 lineardist = revstart + comp - basestart
683 lineardist = revstart + comp - basestart
General Comments 0
You need to be logged in to leave comments. Login now