Submitter | phabricator |
---|---|
Date | March 2, 2018, 2:51 p.m. |
Message ID | <differential-rev-PHID-DREV-i22he6qoxz4goypo52t7-req@phab.mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/28673/ |
State | Superseded |
Headers | show |
Comments
Patch
diff --git a/mercurial/scmutil.py b/mercurial/scmutil.py --- a/mercurial/scmutil.py +++ b/mercurial/scmutil.py @@ -261,7 +261,8 @@ raise error.Abort(_("the name '%s' is reserved") % lbl) for c in (':', '\0', '\n', '\r'): if c in lbl: - raise error.Abort(_("%r cannot be used in a name") % c) + raise error.Abort( + _("%r cannot be used in a name") % pycompat.bytestr(c)) try: int(lbl) raise error.Abort(_("cannot use an integer as a name"))