##// END OF EJS Templates
hgweb: wrap {parents} of {annotate} with mappinggenerator...
Yuya Nishihara -
r38153:8e9ce73c default
parent child Browse files
Show More
@@ -929,7 +929,7 b' def annotate(web):'
929 929 # TODO there are still redundant operations within basefilectx.parents()
930 930 # and from the fctx.annotate() call itself that could be cached.
931 931 parentscache = {}
932 def parents(f):
932 def parents(context, f):
933 933 rev = f.rev()
934 934 if rev not in parentscache:
935 935 parentscache[rev] = []
@@ -967,7 +967,7 b' def annotate(web):'
967 967 "node": f.hex(),
968 968 "rev": rev,
969 969 "author": f.user(),
970 "parents": parents(f),
970 "parents": templateutil.mappinggenerator(parents, args=(f,)),
971 971 "desc": f.description(),
972 972 "extra": f.extra(),
973 973 "file": f.path(),
General Comments 0
You need to be logged in to leave comments. Login now