mercurial/commands.py
branchstable
changeset 19180 12dbdd348bb0
parent 19112 23f785b38af3
child 19184 05390cfe678a
child 19197 01d68fb07915
--- a/mercurial/commands.py	Fri May 10 00:26:39 2013 +0400
+++ b/mercurial/commands.py	Tue May 07 23:49:03 2013 +0900
@@ -943,6 +943,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