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

login
register
mail settings
Submitter phabricator
Date Nov. 8, 2019, 6:21 p.m.
Message ID <differential-rev-PHID-DREV-l6n2sttpglz3v2g2qpoi-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/42976/
State Superseded
Headers show

Comments

phabricator - Nov. 8, 2019, 6:21 p.m.
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  mercurial/localrepo.py

CHANGE DETAILS




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

Patch

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)