diff mercurial/commands.py @ 11169:3d0a9c8d7184

tag: strip whitespace from tag names (issue2174)
author Matt Mackall <mpm@selenic.com>
date Wed, 12 May 2010 15:40:58 -0500
parents e8915e19205a
children 5b48d819d5f9
line wrap: on
line diff
--- 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: