# HG changeset patch # User Wagner Bruna # Date 1238919106 10800 # Node ID 36924a4711e96bd31f21b30ba86112a9701ac070 # Parent a4defdc4f5dc2d28eebaf39e9fd17ec4312611f7 commands, i18n: avoid untranslated strings as message parameters diff -r a4defdc4f5dc -r 36924a4711e9 mercurial/commands.py --- a/mercurial/commands.py Sat Apr 04 20:16:01 2009 +0200 +++ b/mercurial/commands.py Sun Apr 05 05:11:46 2009 -0300 @@ -2829,8 +2829,10 @@ if not repo.tagtype(n): raise util.Abort(_('tag \'%s\' does not exist') % n) if repo.tagtype(n) != expectedtype: - raise util.Abort(_('tag \'%s\' is not a %s tag') % - (n, expectedtype)) + if expectedtype == 'global': + raise util.Abort(_('tag \'%s\' is not a global tag') % n) + else: + raise util.Abort(_('tag \'%s\' is not a local tag') % n) rev_ = nullid if not message: message = _('Removed tag %s') % ', '.join(names)