##// END OF EJS Templates
hgweb: wrap {branches} and {entries} of branches with mappinggenerator...
Yuya Nishihara -
r37932:89db7812 default
parent child Browse files
Show More
@@ -292,7 +292,7 b' def branchentries(repo, stripecount, lim'
292 parity = paritygen(stripecount)
292 parity = paritygen(stripecount)
293 sortkey = lambda item: (not item[1], item[0].rev())
293 sortkey = lambda item: (not item[1], item[0].rev())
294
294
295 def entries(**map):
295 def entries(context):
296 count = 0
296 count = 0
297 if not tips:
297 if not tips:
298 for tag, hs, tip, closed in repo.branchmap().iterbranches():
298 for tag, hs, tip, closed in repo.branchmap().iterbranches():
@@ -315,7 +315,7 b' def branchentries(repo, stripecount, lim'
315 'date': ctx.date()
315 'date': ctx.date()
316 }
316 }
317
317
318 return entries
318 return templateutil.mappinggenerator(entries)
319
319
320 def cleanpath(repo, path):
320 def cleanpath(repo, path):
321 path = path.lstrip('/')
321 path = path.lstrip('/')
General Comments 0
You need to be logged in to leave comments. Login now