##// END OF EJS Templates
hgweb: document the revnavgen function
Pierre-Yves David -
r18320:60680d69 default
parent child Browse files
Show More
@@ -25,6 +25,19 b' def up(p):'
25 return up + "/"
25 return up + "/"
26
26
27 def revnavgen(pos, pagelen, limit, nodefunc):
27 def revnavgen(pos, pagelen, limit, nodefunc):
28 """computes label and revision id for navigation link
29
30 :pos: is the revision relative to which we generate navigation.
31 :pagelen: the size of each navigation page
32 :limit: how far shall we link
33 :nodefun: factory for a changectx from a revision
34
35 The return is:
36 - a single element tuple
37 - containing a dictionary with a `before` and `after` key
38 - values are generator functions taking an arbitrary number of kwargs
39 - yield items are dictionaries with `label` and `node` keys
40 """
28 def seq(factor, limit=None):
41 def seq(factor, limit=None):
29 if limit:
42 if limit:
30 yield limit
43 yield limit
General Comments 0
You need to be logged in to leave comments. Login now