changeset 11697 | efcdf6a953a0 |
parent 11686 | fc360de66217 |
parent 11692 | 52e4ac3e63f7 |
child 11718 | 3e979f47a4c9 |
--- a/mercurial/commands.py Tue Jul 27 16:03:42 2010 -0500 +++ b/mercurial/commands.py Tue Jul 27 16:04:00 2010 -0500 @@ -3650,6 +3650,8 @@ for n in names: if n in ['tip', '.', 'null']: raise util.Abort(_('the name \'%s\' is reserved') % n) + if not n: + raise util.Abort(_('tag names cannot consist entirely of whitespace')) if opts.get('rev') and opts.get('remove'): raise util.Abort(_("--rev and --remove are incompatible")) if opts.get('rev'):