mercurial/commands.py
changeset 19184 05390cfe678a
parent 19147 5b1835485442
parent 19180 12dbdd348bb0
child 19201 309c439cdbaa
--- a/mercurial/commands.py	Sat May 11 20:25:15 2013 -0500
+++ b/mercurial/commands.py	Mon May 13 13:02:01 2013 -0500
@@ -955,6 +955,9 @@
 
     Returns 0 on success.
     """
+    if label:
+        label = label.strip()
+
     if not opts.get('clean') and not label:
         ui.write("%s\n" % repo.dirstate.branch())
         return