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
--- 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)