mercurial/scmutil.py
branchstable
changeset 17850 71c1513fd560
parent 17846 f42cf30873dc
child 17937 3cb032d50447
child 18192 f9a89bdd64a6
--- a/mercurial/scmutil.py	Mon Oct 22 17:23:31 2012 -0500
+++ b/mercurial/scmutil.py	Sun Oct 21 11:20:33 2012 -0200
@@ -32,8 +32,7 @@
         raise util.Abort(_("the name '%s' is reserved") % lbl)
     for c in (':', '\0', '\n', '\r'):
         if c in lbl:
-            raise util.Abort(_("%r cannot be used in a %s name") %
-                               (c, kind))
+            raise util.Abort(_("%r cannot be used in a name") % c)
 
 def checkfilename(f):
     '''Check that the filename f is an acceptable filename for a tracked file'''