hgext/histedit.py
changeset 19039 41669a18a7d6
parent 19021 26b41a902195
child 19045 080b801c34f1
--- a/hgext/histedit.py	Fri Feb 01 15:00:23 2013 -0800
+++ b/hgext/histedit.py	Thu Apr 18 11:52:34 2013 -0400
@@ -722,10 +722,7 @@
         if ' ' not in r:
             raise util.Abort(_('malformed line "%s"') % r)
         action, rest = r.split(' ', 1)
-        if ' ' in rest.strip():
-            ha, rest = rest.split(' ', 1)
-        else:
-            ha = r.strip()
+        ha = rest.strip().split(' ', 1)[0]
         try:
             if repo[ha] not in ctxs:
                 raise util.Abort(