comparison mercurial/cmdutil.py @ 9961:0aa1a632262b

cmdutil: fix missing default 'extra' template
author Patrick Mezard <pmezard@gmail.com>
date Mon, 30 Nov 2009 22:23:09 +0100
parents a92539567ef3
children a68fb6f4ae4b
comparison
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):