##// END OF EJS Templates
hgweb: wrap {whyunstable} with mappinggenerator...
Yuya Nishihara -
r37934:3dc4045d default
parent child Browse files
Show More
@@ -392,7 +392,7 b' def succsandmarkers(context, mapping):'
392 392 # teach templater succsandmarkers is switched to (context, mapping) API
393 393 succsandmarkers._requires = {'repo', 'ctx'}
394 394
395 def whyunstable(context, mapping):
395 def _whyunstablegen(context, mapping):
396 396 repo = context.resource(mapping, 'repo')
397 397 ctx = context.resource(mapping, 'ctx')
398 398
@@ -402,6 +402,9 b' def whyunstable(context, mapping):'
402 402 entry['divergentnodes'] = _siblings(entry['divergentnodes'])
403 403 yield entry
404 404
405 def whyunstable(context, mapping):
406 return templateutil.mappinggenerator(_whyunstablegen, args=(mapping,))
407
405 408 whyunstable._requires = {'repo', 'ctx'}
406 409
407 410 def commonentry(repo, ctx):
General Comments 0
You need to be logged in to leave comments. Login now