diff 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
line wrap: on
line diff
--- a/contrib/perf.py	Tue Jan 05 17:08:14 2016 -0800
+++ b/contrib/perf.py	Tue Jan 05 19:51:51 2016 -0800
@@ -568,7 +568,7 @@
         r.revision(node)
 
     chain = r._deltachain(rev)[0]
-    data = r._chunkraw(chain[0], chain[-1])
+    data = r._chunkraw(chain[0], chain[-1])[1]
     bins = r._chunks(chain)
     text = str(bins[0])
     bins = bins[1:]