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