tag: strip whitespace from tag names (issue2174)
authorMatt Mackall <mpm@selenic.com>
Wed, 12 May 2010 15:40:58 -0500
changeset 11169 3d0a9c8d7184
parent 11168 6d0d945f9e52
child 11172 e9226eb3af2a
tag: strip whitespace from tag names (issue2174)
mercurial/commands.py
--- a/mercurial/commands.py	Sun May 09 11:14:43 2010 +0200
+++ b/mercurial/commands.py	Wed May 12 15:40:58 2010 -0500
@@ -3243,7 +3243,7 @@
     """
 
     rev_ = "."
-    names = (name1,) + names
+    names = [t.strip() for t in (name1,) + names]
     if len(names) != len(set(names)):
         raise util.Abort(_('tag names must be unique'))
     for n in names: