mercurial/commands.py
changeset 17817 b17be267b59c
parent 17814 f88ca484c3e9
child 17818 5023027240a1
--- a/mercurial/commands.py	Wed Oct 17 16:32:43 2012 -0500
+++ b/mercurial/commands.py	Wed Oct 17 16:34:46 2012 -0500
@@ -5640,8 +5640,7 @@
         if len(names) != len(set(names)):
             raise util.Abort(_('tag names must be unique'))
         for n in names:
-            if n in ['tip', '.', 'null']:
-                raise util.Abort(_("the name '%s' is reserved") % n)
+            scmutil.checknewlabel(repo, n)
             if not n:
                 raise util.Abort(_('tag names cannot consist entirely of '
                                    'whitespace'))