mercurial/revlog.py
changeset 31356 ef6888172437
parent 30829 08b34c3a6f74
child 31357 c233cbda5b1e
--- a/mercurial/revlog.py	Sun Mar 12 00:46:59 2017 -0500
+++ b/mercurial/revlog.py	Sun Mar 12 00:49:49 2017 -0500
@@ -1521,7 +1521,7 @@
         #
         # According to `hg perfrevlogchunks`, this is ~0.5% faster for zlib
         # compressed chunks. And this matters for changelog and manifest reads.
-        t = data[0]
+        t = data[0:1]
 
         if t == 'x':
             try: