Mercurial > hg
changeset 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 | dd816e5391f6 |
children | f9f2faf25fc4 |
files | mercurial/localrepo.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
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)