Mercurial > hg-stable
changeset 37962:120c343c38b7
cvsps: convert encoding name to sysstr
Differential Revision: https://phab.mercurial-scm.org/D3489
author | Augie Fackler <augie@google.com> |
---|---|
date | Fri, 27 Apr 2018 01:32:21 -0400 |
parents | c6904da6ab15 |
children | 7a97a622244d |
files | hgext/convert/cvsps.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/convert/cvsps.py Wed May 09 13:46:31 2018 -0700 +++ b/hgext/convert/cvsps.py Fri Apr 27 01:32:21 2018 -0400 @@ -510,7 +510,8 @@ comment = entry.comment for e in encodings: try: - entry.comment = comment.decode(e).encode('utf-8') + entry.comment = comment.decode( + pycompat.sysstr(e)).encode('utf-8') if ui.debugflag: ui.debug("transcoding by %s: %s of %s\n" % (e, revstr(entry.revision), entry.file))