comparison 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
comparison
equal deleted inserted replaced
14111:30cb7ece4378 14170:31ec4d7eb63f
105 if line.startswith("# User "): 105 if line.startswith("# User "):
106 user = line[7:] 106 user = line[7:]
107 elif line.startswith("# Date "): 107 elif line.startswith("# Date "):
108 date = line[7:] 108 date = line[7:]
109 elif line.startswith("# Parent "): 109 elif line.startswith("# Parent "):
110 parent = line[9:] 110 parent = line[9:].lstrip()
111 elif line.startswith("# Branch "): 111 elif line.startswith("# Branch "):
112 branch = line[9:] 112 branch = line[9:]
113 elif line.startswith("# Node ID "): 113 elif line.startswith("# Node ID "):
114 nodeid = line[10:] 114 nodeid = line[10:]
115 elif not line.startswith("# ") and line: 115 elif not line.startswith("# ") and line: