Submitter | phabricator |
---|---|
Date | April 14, 2020, 7:18 p.m. |
Message ID | <a69e9181f55ad8975a316b2729b74bc7@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/46108/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/mercurial/manifest.py b/mercurial/manifest.py --- a/mercurial/manifest.py +++ b/mercurial/manifest.py @@ -386,7 +386,11 @@ self.extradata = [] def _pack(self, d): - return d[0] + b'\x00' + hex(d[1][:20]) + d[2] + b'\n' + n = d[1] + if len(n) == 21 or len(n) == 33: + n = n[:-1] + assert len(n) == 20 or len(n) == 32 + return d[0] + b'\x00' + hex(n) + d[2] + b'\n' def text(self): self._compact()