comparison hgext/keyword.py @ 34500:6c705bf6a8ff

configitems: register the 'keywordset.svn' config
author Boris Feld <boris.feld@octobus.net>
date Fri, 30 Jun 2017 03:42:50 +0200
parents a39dce4a76b8
children 3fbc30f7b9f0
comparison
equal deleted inserted replaced
34499:b8f74c4d188f 34500:6c705bf6a8ff
141 'kwfiles.ignoredunknown': 'none' 141 'kwfiles.ignoredunknown': 'none'
142 } 142 }
143 143
144 templatefilter = registrar.templatefilter() 144 templatefilter = registrar.templatefilter()
145 145
146 configtable = {}
147 configitem = registrar.configitem(configtable)
148
149 configitem('keywordset', 'svn',
150 default=False,
151 )
146 # date like in cvs' $Date 152 # date like in cvs' $Date
147 @templatefilter('utcdate') 153 @templatefilter('utcdate')
148 def utcdate(text): 154 def utcdate(text):
149 '''Date. Returns a UTC-date in this format: "2009/08/18 11:00:13". 155 '''Date. Returns a UTC-date in this format: "2009/08/18 11:00:13".
150 ''' 156 '''