diff hgext/mq.py @ 14170:31ec4d7eb63f stable

mq: strip extra whitespace from node ids in header (issue2790) This makes `hg qpush --exact` work with patches created by `hg export`.
author Kevin Bullock <kbullock@ringworld.org>
date Tue, 03 May 2011 11:46:02 -0500
parents 2b1226693c70
children bf951d58b917 deb82fdda94e
line wrap: on
line diff
--- a/hgext/mq.py	Sun May 01 05:58:04 2011 -0500
+++ b/hgext/mq.py	Tue May 03 11:46:02 2011 -0500
@@ -107,7 +107,7 @@
                 elif line.startswith("# Date "):
                     date = line[7:]
                 elif line.startswith("# Parent "):
-                    parent = line[9:]
+                    parent = line[9:].lstrip()
                 elif line.startswith("# Branch "):
                     branch = line[9:]
                 elif line.startswith("# Node ID "):