diff mercurial/commands.py @ 19184:05390cfe678a

merge with stable
author Kevin Bullock <kbullock@ringworld.org>
date Mon, 13 May 2013 13:02:01 -0500
parents 5b1835485442 12dbdd348bb0
children 309c439cdbaa
line wrap: on
line diff
--- 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