Show More
@@ -70,13 +70,9 b' def revnavgen(pos, pagelen, limit, nodef' | |||||
70 | except error.RepoError: |
|
70 | except error.RepoError: | |
71 | pass |
|
71 | pass | |
72 |
|
72 | |||
73 | def gen(l): |
|
73 | data = lambda i: {"label": i[0], "node": i[1]} | |
74 | def f(**map): |
|
74 | return ({'before': lambda **map: (data(i) for i in navbefore), | |
75 | for label, node in l: |
|
75 | 'after': lambda **map: (data(i) for i in navafter)},) | |
76 | yield {"label": label, "node": node} |
|
|||
77 | return f |
|
|||
78 |
|
||||
79 | return (dict(before=gen(navbefore), after=gen(navafter)),) |
|
|||
80 |
|
76 | |||
81 | def _siblings(siblings=[], hiderev=None): |
|
77 | def _siblings(siblings=[], hiderev=None): | |
82 | siblings = [s for s in siblings if s.node() != nullid] |
|
78 | siblings = [s for s in siblings if s.node() != nullid] |
General Comments 0
You need to be logged in to leave comments.
Login now