mercurial/cmdutil.py
changeset 9961 0aa1a632262b
parent 9928 a92539567ef3
child 9963 a68fb6f4ae4b
equal deleted inserted replaced
9957:ad44e1f8b3f3 9961:0aa1a632262b
   753         formatnode = ui.debugflag and (lambda x: x) or (lambda x: x[:12])
   753         formatnode = ui.debugflag and (lambda x: x) or (lambda x: x[:12])
   754         self.t = templater.templater(mapfile, {'formatnode': formatnode},
   754         self.t = templater.templater(mapfile, {'formatnode': formatnode},
   755                                      cache={
   755                                      cache={
   756                                          'parent': '{rev}:{node|formatnode} ',
   756                                          'parent': '{rev}:{node|formatnode} ',
   757                                          'manifest': '{rev}:{node|formatnode}',
   757                                          'manifest': '{rev}:{node|formatnode}',
   758                                          'filecopy': '{name} ({source})'})
   758                                          'filecopy': '{name} ({source})',
       
   759                                          'extra': '{key}={value|stringescape}'})
   759         # Cache mapping from rev to a tuple with tag date, tag
   760         # Cache mapping from rev to a tuple with tag date, tag
   760         # distance and tag name
   761         # distance and tag name
   761         self._latesttagcache = {-1: (0, 0, 'null')}
   762         self._latesttagcache = {-1: (0, 0, 'null')}
   762 
   763 
   763     def use_template(self, t):
   764     def use_template(self, t):