Show More
@@ -188,7 +188,6 b' def extract(ui, fileobj):' | |||||
188 | subject = '\n'.join(': '.join(h) for h in msg.items()) + '\n' |
|
188 | subject = '\n'.join(': '.join(h) for h in msg.items()) + '\n' | |
189 |
|
189 | |||
190 | # should try to parse msg['Date'] |
|
190 | # should try to parse msg['Date'] | |
191 | nodeid = None |
|
|||
192 | parents = [] |
|
191 | parents = [] | |
193 |
|
192 | |||
194 | if subject: |
|
193 | if subject: | |
@@ -236,7 +235,7 b' def extract(ui, fileobj):' | |||||
236 | elif line.startswith("# Branch "): |
|
235 | elif line.startswith("# Branch "): | |
237 | data['branch'] = line[9:] |
|
236 | data['branch'] = line[9:] | |
238 | elif line.startswith("# Node ID "): |
|
237 | elif line.startswith("# Node ID "): | |
239 | nodeid = line[10:] |
|
238 | data['nodeid'] = line[10:] | |
240 | elif line.startswith("# Parent "): |
|
239 | elif line.startswith("# Parent "): | |
241 | parents.append(line[9:].lstrip()) |
|
240 | parents.append(line[9:].lstrip()) | |
242 | elif not line.startswith("# "): |
|
241 | elif not line.startswith("# "): | |
@@ -273,7 +272,6 b' def extract(ui, fileobj):' | |||||
273 | data['p2'] = parents.pop(0) |
|
272 | data['p2'] = parents.pop(0) | |
274 |
|
273 | |||
275 | data['filename'] = tmpname |
|
274 | data['filename'] = tmpname | |
276 | data['nodeid'] = nodeid |
|
|||
277 | return data |
|
275 | return data | |
278 |
|
276 | |||
279 | class patchmeta(object): |
|
277 | class patchmeta(object): |
General Comments 0
You need to be logged in to leave comments.
Login now