Mercurial > hg
diff mercurial/localrepo.py @ 40353:a2ebdca4d10e
localrepo: ensure we properly %-format int in exception throw
I'm not thrilled with this, but it'll do.
Differential Revision: https://phab.mercurial-scm.org/D5107
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 14 Oct 2018 09:50:21 -0400 |
parents | 6637b079ae45 |
children | dee73a97e132 |
line wrap: on
line diff
--- a/mercurial/localrepo.py Thu Oct 18 14:41:14 2018 +0300 +++ b/mercurial/localrepo.py Sun Oct 14 09:50:21 2018 -0400 @@ -1282,7 +1282,8 @@ raise error.FilteredRepoLookupError(_("filtered revision '%s'") % pycompat.bytestr(changeid)) except (IndexError, LookupError): - raise error.RepoLookupError(_("unknown revision '%s'") % changeid) + raise error.RepoLookupError( + _("unknown revision '%s'") % pycompat.bytestr(changeid)) except error.WdirUnsupported: return context.workingctx(self)