equal
deleted
inserted
replaced
4 # |
4 # |
5 # This software may be used and distributed according to the terms of the |
5 # This software may be used and distributed according to the terms of the |
6 # GNU General Public License version 2 or any later version. |
6 # GNU General Public License version 2 or any later version. |
7 |
7 |
8 from node import hex |
8 from node import hex |
9 import patch, util, error, help |
9 import patch, util, error |
10 |
10 |
11 def showlist(name, values, plural=None, **args): |
11 def showlist(name, values, plural=None, **args): |
12 '''expand set of values. |
12 '''expand set of values. |
13 name is name of key in template map. |
13 name is name of key in template map. |
14 values is list of strings or dicts. |
14 values is list of strings or dicts. |
311 'node': shownode, |
311 'node': shownode, |
312 'rev': showrev, |
312 'rev': showrev, |
313 'tags': showtags, |
313 'tags': showtags, |
314 } |
314 } |
315 |
315 |
316 def makedoc(topic, doc): |
|
317 return help.makeitemsdoc(topic, doc, '.. keywordsmarker', keywords) |
|
318 |
|
319 # tell hggettext to extract docstrings from these functions: |
316 # tell hggettext to extract docstrings from these functions: |
320 i18nfunctions = keywords.values() |
317 i18nfunctions = keywords.values() |