comparison 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
comparison
equal deleted inserted replaced
43580:e513e87b0476 43587:bf87f5ff2ebf
1566 node = bin(changeid) 1566 node = bin(changeid)
1567 rev = self.changelog.rev(node) 1567 rev = self.changelog.rev(node)
1568 else: 1568 else:
1569 raise error.ProgrammingError( 1569 raise error.ProgrammingError(
1570 b"unsupported changeid '%s' of type %s" 1570 b"unsupported changeid '%s' of type %s"
1571 % (changeid, type(changeid)) 1571 % (changeid, pycompat.sysstr(type(changeid)))
1572 ) 1572 )
1573 1573
1574 return context.changectx(self, rev, node) 1574 return context.changectx(self, rev, node)
1575 1575
1576 except (error.FilteredIndexError, error.FilteredLookupError): 1576 except (error.FilteredIndexError, error.FilteredLookupError):