Mercurial > public > mercurial-scm > hg-stable
diff mercurial/scmutil.py @ 17850:71c1513fd560 stable
scmutil: generalize message to make it more i18n-friendly
author | Wagner Bruna <wbruna@yahoo.com> |
---|---|
date | Sun, 21 Oct 2012 11:20:33 -0200 |
parents | f42cf30873dc |
children | 3cb032d50447 f9a89bdd64a6 |
line wrap: on
line diff
--- 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'''