changeset 4749:cdafbd01d0bf

py3: avoid "%r" for list of byte strings, which produces b'' on py3
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 11 Jul 2019 21:48:37 -0700
parents d04be27dcce9
children d9d55e34943c
files hgext3rd/evolve/__init__.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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: