localrepo: ensure we properly %-format int in exception throw
authorAugie Fackler <augie@google.com>
Sun, 14 Oct 2018 09:50:21 -0400
changeset 40353 a2ebdca4d10e
parent 40352 dd816e5391f6
child 40354 f9f2faf25fc4
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
mercurial/localrepo.py
--- 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)