# HG changeset patch # User Matt Mackall # Date 2010-05-12 20:40:58 # Node ID 3d0a9c8d71848ca2a8fa707cface6cb41d28839d # Parent 6d0d945f9e5232ee377a2be2e78fde5a607dea75 tag: strip whitespace from tag names (issue2174) diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -3243,7 +3243,7 @@ def tag(ui, repo, name1, *names, **opts) """ 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: