##// END OF EJS Templates
hgweb: wrap {entries}* of bookmarks with mappinggenerator...
Yuya Nishihara -
r38149:edacd831 default
parent child Browse files
Show More
@@ -648,7 +648,7 b' def bookmarks(web):'
648 i = sorted(i, key=sortkey, reverse=True)
648 i = sorted(i, key=sortkey, reverse=True)
649 parity = paritygen(web.stripecount)
649 parity = paritygen(web.stripecount)
650
650
651 def entries(latestonly, **map):
651 def entries(context, latestonly):
652 t = i
652 t = i
653 if latestonly:
653 if latestonly:
654 t = i[:1]
654 t = i[:1]
@@ -667,8 +667,8 b' def bookmarks(web):'
667 'bookmarks',
667 'bookmarks',
668 node=hex(web.repo.changelog.tip()),
668 node=hex(web.repo.changelog.tip()),
669 lastchange=[{'date': web.repo[latestrev].date()}],
669 lastchange=[{'date': web.repo[latestrev].date()}],
670 entries=lambda **x: entries(latestonly=False, **x),
670 entries=templateutil.mappinggenerator(entries, args=(False,)),
671 latestentry=lambda **x: entries(latestonly=True, **x))
671 latestentry=templateutil.mappinggenerator(entries, args=(True,)))
672
672
673 @webcommand('branches')
673 @webcommand('branches')
674 def branches(web):
674 def branches(web):
General Comments 0
You need to be logged in to leave comments. Login now