comparison mercurial/dagparser.py @ 34209:da9c4b0693c5

dagparser: fix variable name in error message There's no variable named 'type'.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 03 Sep 2017 15:22:54 +0900
parents 0f9936d80e01
children 8927534cacbc
comparison
equal deleted inserted replaced
34208:0a2fd3bfc704 34209:da9c4b0693c5
366 elif kind == '#': 366 elif kind == '#':
367 yield '#' + data 367 yield '#' + data
368 yield '\n' 368 yield '\n'
369 else: 369 else:
370 raise error.Abort(_("invalid event type in dag: %s") 370 raise error.Abort(_("invalid event type in dag: %s")
371 % str((type, data))) 371 % str((kind, data)))
372 if run: 372 if run:
373 yield '+' + str(run) 373 yield '+' + str(run)
374 374
375 line = '' 375 line = ''
376 for part in gen(): 376 for part in gen():