##// END OF EJS Templates
debugdeltachain: cleanup the double call to _slicechunk...
Paul Morelle -
r35746:22a87721 default
parent child Browse files
Show More
@@ -684,7 +684,10 b' def debugdeltachain(ui, repo, file_=None'
684 if withsparseread:
684 if withsparseread:
685 readsize = 0
685 readsize = 0
686 largestblock = 0
686 largestblock = 0
687 srchunks = 0
688
687 for revschunk in revlog._slicechunk(r, chain):
689 for revschunk in revlog._slicechunk(r, chain):
690 srchunks += 1
688 blkend = start(revschunk[-1]) + length(revschunk[-1])
691 blkend = start(revschunk[-1]) + length(revschunk[-1])
689 blksize = blkend - start(revschunk[0])
692 blksize = blkend - start(revschunk[0])
690
693
@@ -694,12 +697,6 b' def debugdeltachain(ui, repo, file_=None'
694
697
695 readdensity = float(chainsize) / float(readsize)
698 readdensity = float(chainsize) / float(readsize)
696
699
697 if util.safehasattr(revlog, '_slicechunk'):
698 revchunks = tuple(revlog._slicechunk(r, chain))
699 else:
700 revchunks = (chain,)
701 srchunks = len(revchunks)
702
703 fm.write('readsize largestblock readdensity srchunks',
700 fm.write('readsize largestblock readdensity srchunks',
704 ' %10d %10d %9.5f %8d',
701 ' %10d %10d %9.5f %8d',
705 readsize, largestblock, readdensity, srchunks,
702 readsize, largestblock, readdensity, srchunks,
General Comments 0
You need to be logged in to leave comments. Login now