comparison contrib/perf.py @ 27649:6446e9b37c8b

revlog: return offset from _chunkraw() A subsequent patch will refactor _chunks() and the calculation of the offset will no longer occur in that function. Prepare by returning the offset from _chunkraw().
author Gregory Szorc <gregory.szorc@gmail.com>
date Tue, 05 Jan 2016 19:51:51 -0800
parents 11f2e496bdc9
children 330584235c22
comparison
equal deleted inserted replaced
27648:e72e669dd51f 27649:6446e9b37c8b
566 if not cache: 566 if not cache:
567 r.clearcaches() 567 r.clearcaches()
568 r.revision(node) 568 r.revision(node)
569 569
570 chain = r._deltachain(rev)[0] 570 chain = r._deltachain(rev)[0]
571 data = r._chunkraw(chain[0], chain[-1]) 571 data = r._chunkraw(chain[0], chain[-1])[1]
572 bins = r._chunks(chain) 572 bins = r._chunks(chain)
573 text = str(bins[0]) 573 text = str(bins[0])
574 bins = bins[1:] 574 bins = bins[1:]
575 text = mdiff.patches(text, bins) 575 text = mdiff.patches(text, bins)
576 576