Show More
@@ -126,6 +126,10 b' def svnutcdate(text):' | |||||
126 | ''' |
|
126 | ''' | |
127 | return util.datestr((text[0], 0), '%Y-%m-%d %H:%M:%SZ') |
|
127 | return util.datestr((text[0], 0), '%Y-%m-%d %H:%M:%SZ') | |
128 |
|
128 | |||
|
129 | templatefilters.filters.update({'utcdate': utcdate, | |||
|
130 | 'svnisodate': svnisodate, | |||
|
131 | 'svnutcdate': svnutcdate}) | |||
|
132 | ||||
129 | # make keyword tools accessible |
|
133 | # make keyword tools accessible | |
130 | kwtools = {'templater': None, 'hgcmd': ''} |
|
134 | kwtools = {'templater': None, 'hgcmd': ''} | |
131 |
|
135 | |||
@@ -187,9 +191,6 b' class kwtemplater(object):' | |||||
187 | for k, v in kwmaps) |
|
191 | for k, v in kwmaps) | |
188 | else: |
|
192 | else: | |
189 | self.templates = _defaultkwmaps(self.ui) |
|
193 | self.templates = _defaultkwmaps(self.ui) | |
190 | templatefilters.filters.update({'utcdate': utcdate, |
|
|||
191 | 'svnisodate': svnisodate, |
|
|||
192 | 'svnutcdate': svnutcdate}) |
|
|||
193 |
|
194 | |||
194 | @util.propertycache |
|
195 | @util.propertycache | |
195 | def escape(self): |
|
196 | def escape(self): |
General Comments 0
You need to be logged in to leave comments.
Login now