Submitter | Augie Fackler |
---|---|
Date | March 12, 2017, 7:49 p.m. |
Message ID | <65576cf9d641ace0f86c.1489348193@augie-macbookair2.roam.corp.google.com> |
Download | mbox | patch |
Permalink | /patch/19218/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/manifest.py b/mercurial/manifest.py --- a/mercurial/manifest.py +++ b/mercurial/manifest.py @@ -12,6 +12,7 @@ import os import struct from .i18n import _ +from .node import bin from . import ( error, mdiff, @@ -151,7 +152,7 @@ class lazymanifestiterentries(object): __next__ = next def unhexlify(data, extra, pos, length): - s = data[pos:pos + length].decode('hex') + s = bin(data[pos:pos + length]) if extra: s += chr(extra & 0xff) return s