mercurial/templatekw.py
changeset 14318 1f46be4689ed
parent 14064 e4bfb9c337f3
child 14403 2c9f5897d4b7
equal deleted inserted replaced
14317:660b0c1b6196 14318:1f46be4689ed
     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()