Mercurial > hg
diff mercurial/localrepo.py @ 43587:bf87f5ff2ebf stable
py3: avoid `b'%s' % type(...)` in a ProgrammingError
Differential Revision: https://phab.mercurial-scm.org/D7363
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 08 Nov 2019 10:13:05 -0800 |
parents | be384a2052aa |
children | 32048206e7be c5bcd946a34b |
line wrap: on
line diff
--- a/mercurial/localrepo.py Sat Nov 09 10:31:58 2019 +0100 +++ b/mercurial/localrepo.py Fri Nov 08 10:13:05 2019 -0800 @@ -1568,7 +1568,7 @@ else: raise error.ProgrammingError( b"unsupported changeid '%s' of type %s" - % (changeid, type(changeid)) + % (changeid, pycompat.sysstr(type(changeid))) ) return context.changectx(self, rev, node)