changeset 38086:c0f8fa74d8c2

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
author Augie Fackler <augie@google.com>
date Fri, 18 May 2018 20:11:24 -0400
parents 468797392cc6
children 92ac9cf78dba
files mercurial/context.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: