# HG changeset patch # User Augie Fackler # Date 2017-03-12 05:49:49 # Node ID ef6888172437531d417cb361d630895051daed6f # Parent 77270ec0cdd9af7a6d46f0cc7264c5002e9b5489 revlog: extract first byte of revlog with a slice so it's portable diff --git a/mercurial/revlog.py b/mercurial/revlog.py --- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -1521,7 +1521,7 @@ class revlog(object): # # 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: