D7363: py3: avoid `b'%s' % type(...)` in a ProgrammingError

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Mon Nov 11 08:27:06 EST 2019


Closed by commit rHGbf87f5ff2ebf: py3: avoid `b'%s' % type(...)` in a ProgrammingError (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7363?vs=17794&id=18015

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7363/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7363

AFFECTED FILES
  mercurial/localrepo.py

CHANGE DETAILS

diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -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)



To: martinvonz, #hg-reviewers, pulkit
Cc: mercurial-devel


More information about the Mercurial-devel mailing list