# HG changeset patch # User Augie Fackler # Date 1489297789 18000 # Node ID ef6888172437531d417cb361d630895051daed6f # Parent 77270ec0cdd9af7a6d46f0cc7264c5002e9b5489 revlog: extract first byte of revlog with a slice so it's portable diff -r 77270ec0cdd9 -r ef6888172437 mercurial/revlog.py --- 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: