context: fix %-formatting on Python 3
authorAugie Fackler <augie@google.com>
Fri, 18 May 2018 20:11:24 -0400
changeset 38053 c0f8fa74d8c2
parent 38052 468797392cc6
child 38054 92ac9cf78dba
context: fix %-formatting on Python 3 changeid could be an int or a bytestr, so use our pycompat wrapper. Differential Revision: https://phab.mercurial-scm.org/D3585
mercurial/context.py
--- a/mercurial/context.py	Fri May 18 19:54:50 2018 -0400
+++ b/mercurial/context.py	Fri May 18 20:11:24 2018 -0400
@@ -432,7 +432,7 @@
             # lookup failed
         except (error.FilteredIndexError, error.FilteredLookupError):
             raise error.FilteredRepoLookupError(_("filtered revision '%s'")
-                                                % changeid)
+                                                % pycompat.bytestr(changeid))
         except error.FilteredRepoLookupError:
             raise
         except IndexError: