diff hgext/mq.py @ 25453:d3a00fc3680f

mq: use %r to format illegal characters instead of manually quoting This will make it easier to ban \r and \n in the next patch and still have a sensible error message.
author Augie Fackler <augie@google.com>
date Fri, 05 Jun 2015 14:31:52 -0400
parents d298805fb639
children b5a8bc09b0db
line wrap: on
line diff
--- a/hgext/mq.py	Fri Jun 05 15:20:33 2015 -0400
+++ b/hgext/mq.py	Fri Jun 05 14:31:52 2015 -0400
@@ -1104,7 +1104,7 @@
                                  % prefix)
         for c in ('#', ':'):
             if c in name:
-                raise util.Abort(_('"%s" cannot be used in the name of a patch')
+                raise util.Abort(_('%r cannot be used in the name of a patch')
                                  % c)
 
     def checkpatchname(self, name, force=False):