Show More
@@ -378,7 +378,7 b' def linerange(req):' | |||
|
378 | 378 | def formatlinerange(fromline, toline): |
|
379 | 379 | return '%d:%d' % (fromline + 1, toline) |
|
380 | 380 | |
|
381 | def succsandmarkers(context, mapping): | |
|
381 | def _succsandmarkersgen(context, mapping): | |
|
382 | 382 | repo = context.resource(mapping, 'repo') |
|
383 | 383 | itemmappings = templatekw.showsuccsandmarkers(context, mapping) |
|
384 | 384 | for item in itemmappings.tovalue(context, mapping): |
@@ -386,6 +386,9 b' def succsandmarkers(context, mapping):' | |||
|
386 | 386 | for successor in item['successors']) |
|
387 | 387 | yield item |
|
388 | 388 | |
|
389 | def succsandmarkers(context, mapping): | |
|
390 | return templateutil.mappinggenerator(_succsandmarkersgen, args=(mapping,)) | |
|
391 | ||
|
389 | 392 | # teach templater succsandmarkers is switched to (context, mapping) API |
|
390 | 393 | succsandmarkers._requires = {'repo', 'ctx'} |
|
391 | 394 |
General Comments 0
You need to be logged in to leave comments.
Login now