Show More
@@ -355,7 +355,8 b' def formatlinerange(fromline, toline):' | |||||
355 |
|
355 | |||
356 | def succsandmarkers(context, mapping): |
|
356 | def succsandmarkers(context, mapping): | |
357 | repo = context.resource(mapping, 'repo') |
|
357 | repo = context.resource(mapping, 'repo') | |
358 |
|
|
358 | itemmappings = templatekw.showsuccsandmarkers(context, mapping) | |
|
359 | for item in itemmappings.tovalue(context, mapping): | |||
359 | item['successors'] = _siblings(repo[successor] |
|
360 | item['successors'] = _siblings(repo[successor] | |
360 | for successor in item['successors']) |
|
361 | for successor in item['successors']) | |
361 | yield item |
|
362 | yield item |
@@ -501,7 +501,7 b' def showobsfate(context, mapping):' | |||||
501 | repo = context.resource(mapping, 'repo') |
|
501 | repo = context.resource(mapping, 'repo') | |
502 | values = [] |
|
502 | values = [] | |
503 |
|
503 | |||
504 | for x in succsandmarkers: |
|
504 | for x in succsandmarkers.tovalue(context, mapping): | |
505 | v = obsutil.obsfateprinter(ui, repo, x['successors'], x['markers'], |
|
505 | v = obsutil.obsfateprinter(ui, repo, x['successors'], x['markers'], | |
506 | scmutil.formatchangeid) |
|
506 | scmutil.formatchangeid) | |
507 | values.append(v) |
|
507 | values.append(v) | |
@@ -663,8 +663,7 b' def showsuccsandmarkers(context, mapping' | |||||
663 |
|
663 | |||
664 | data.append({'successors': successors, 'markers': finalmarkers}) |
|
664 | data.append({'successors': successors, 'markers': finalmarkers}) | |
665 |
|
665 | |||
666 | f = _showcompatlist(context, mapping, 'succsandmarkers', data) |
|
666 | return templateutil.mappinglist(data) | |
667 | return _hybrid(f, data, lambda x: x, pycompat.identity) |
|
|||
668 |
|
667 | |||
669 | @templatekeyword('p1rev', requires={'ctx'}) |
|
668 | @templatekeyword('p1rev', requires={'ctx'}) | |
670 | def showp1rev(context, mapping): |
|
669 | def showp1rev(context, mapping): |
General Comments 0
You need to be logged in to leave comments.
Login now