changeset 36228 | ddeb7653b31c |
parent 35974 | 9ba1d0c724e2 |
child 36607 | c6061cadb400 |
--- a/mercurial/changelog.py Mon Feb 12 10:41:00 2018 -0500 +++ b/mercurial/changelog.py Wed Feb 14 16:37:46 2018 +0530 @@ -20,6 +20,7 @@ from . import ( encoding, error, + pycompat, revlog, util, ) @@ -517,8 +518,8 @@ if not user: raise error.RevlogError(_("empty username")) if "\n" in user: - raise error.RevlogError(_("username %s contains a newline") - % repr(user)) + raise error.RevlogError(_("username %r contains a newline") + % pycompat.bytestr(user)) desc = stripdesc(desc)