# HG changeset patch # User Martin von Zweigbergk # Date 1562906917 25200 # Node ID cdafbd01d0bf9b691a925210fc2766a4935c53c0 # Parent d04be27dcce9d9506d57444fd822faea5861f0d4 py3: avoid "%r" for list of byte strings, which produces b'' on py3 diff -r d04be27dcce9 -r cdafbd01d0bf hgext3rd/evolve/__init__.py --- a/hgext3rd/evolve/__init__.py Thu Jul 11 21:48:02 2019 -0700 +++ b/hgext3rd/evolve/__init__.py Thu Jul 11 21:48:37 2019 -0700 @@ -429,8 +429,9 @@ if not matchingevolvecommands: raise error.Abort(_('unknown command: %s') % cmd) elif len(matchingevolvecommands) > 1: - msg = _('ambiguous command specification: "%s" matches %r') - raise error.Abort(msg % (cmd, matchingevolvecommands)) + matchstr = ', '.join(matchingevolvecommands) + msg = _("ambiguous command specification: '%s' matches [%s]") + raise error.Abort(msg % (cmd, matchstr)) else: whitelist.add(matchingevolvecommands[0]) for disabledcmd in set(cmdtable) - whitelist: