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