Show More
@@ -262,16 +262,15 b' def extract(ui, fileobj):' | |||||
262 | data['message'] = message |
|
262 | data['message'] = message | |
263 | data['user'] = user |
|
263 | data['user'] = user | |
264 | tmpfp.close() |
|
264 | tmpfp.close() | |
265 | if not diffs_seen: |
|
|||
266 | os.unlink(tmpname) |
|
|||
267 | return data |
|
|||
268 |
|
||||
269 | if parents: |
|
265 | if parents: | |
270 | data['p1'] = parents.pop(0) |
|
266 | data['p1'] = parents.pop(0) | |
271 | if parents: |
|
267 | if parents: | |
272 | data['p2'] = parents.pop(0) |
|
268 | data['p2'] = parents.pop(0) | |
273 |
|
269 | |||
274 | data['filename'] = tmpname |
|
270 | if diffs_seen: | |
|
271 | data['filename'] = tmpname | |||
|
272 | else: | |||
|
273 | os.unlink(tmpname) | |||
275 | return data |
|
274 | return data | |
276 |
|
275 | |||
277 | class patchmeta(object): |
|
276 | class patchmeta(object): |
General Comments 0
You need to be logged in to leave comments.
Login now