Submitter | phabricator |
---|---|
Date | Jan. 16, 2019, 5:21 p.m. |
Message ID | <a5db92ca572b84a7ff35b19cf49a9b03@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/37824/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/hgext/remotefilelog/shallowbundle.py b/hgext/remotefilelog/shallowbundle.py --- a/hgext/remotefilelog/shallowbundle.py +++ b/hgext/remotefilelog/shallowbundle.py @@ -269,8 +269,8 @@ base = fl.revision(deltabase, raw=True) text = mdiff.patch(base, delta) - if isinstance(text, buffer): - text = str(text) + if not isinstance(text, bytes): + text = bytes(text) meta, text = shallowutil.parsemeta(text) if 'copy' in meta: