Comments
Patch
@@ -41,6 +41,8 @@
ui.status(_("no changes found\n"))
def checknewlabel(repo, lbl, kind):
+ # Do not use the "kind" parameter in ui output.
+ # It makes strings difficult to translate.
if lbl in ['tip', '.', 'null']:
raise util.Abort(_("the name '%s' is reserved") % lbl)
for c in (':', '\0', '\n', '\r'):
@@ -48,7 +50,7 @@
raise util.Abort(_("%r cannot be used in a name") % c)
try:
int(lbl)
- raise util.Abort(_("a %s cannot have an integer as its name") % kind)
+ raise util.Abort(_("cannot use an integer as a label"))
except ValueError:
pass
@@ -260,7 +260,7 @@
bookmark with integer name
$ hg bookmark 10
- abort: a bookmark cannot have an integer as its name
+ abort: cannot use an integer as a label
[255]
incompatible options