mercurial/templatekw.py
changeset 31181 1ec89cf0ea49
parent 30833 bd5e9647f646
child 31461 52dabcc49968
equal deleted inserted replaced
31180:e64b70c96338 31181:1ec89cf0ea49
   202         except error.LookupError:
   202         except error.LookupError:
   203             return None
   203             return None
   204 
   204 
   205     return getrenamed
   205     return getrenamed
   206 
   206 
       
   207 # default templates internally used for rendering of lists
       
   208 defaulttempl = {
       
   209     'parent': '{rev}:{node|formatnode} ',
       
   210     'manifest': '{rev}:{node|formatnode}',
       
   211     'file_copy': '{name} ({source})',
       
   212     'envvar': '{key}={value}',
       
   213     'extra': '{key}={value|stringescape}'
       
   214 }
       
   215 # filecopy is preserved for compatibility reasons
       
   216 defaulttempl['filecopy'] = defaulttempl['file_copy']
       
   217 
   207 # keywords are callables like:
   218 # keywords are callables like:
   208 # fn(repo, ctx, templ, cache, revcache, **args)
   219 # fn(repo, ctx, templ, cache, revcache, **args)
   209 # with:
   220 # with:
   210 # repo - current repository instance
   221 # repo - current repository instance
   211 # ctx - the changectx being displayed
   222 # ctx - the changectx being displayed