Show More
@@ -1442,16 +1442,8 class changeset_templater(changeset_prin | |||||
1442 |
|
1442 | |||
1443 | def __init__(self, ui, repo, matchfn, diffopts, tmpl, mapfile, buffered): |
|
1443 | def __init__(self, ui, repo, matchfn, diffopts, tmpl, mapfile, buffered): | |
1444 | changeset_printer.__init__(self, ui, repo, matchfn, diffopts, buffered) |
|
1444 | changeset_printer.__init__(self, ui, repo, matchfn, diffopts, buffered) | |
1445 | defaulttempl = { |
|
|||
1446 | 'parent': '{rev}:{node|formatnode} ', |
|
|||
1447 | 'manifest': '{rev}:{node|formatnode}', |
|
|||
1448 | 'file_copy': '{name} ({source})', |
|
|||
1449 | 'envvar': '{key}={value}', |
|
|||
1450 | 'extra': '{key}={value|stringescape}' |
|
|||
1451 | } |
|
|||
1452 | # filecopy is preserved for compatibility reasons |
|
|||
1453 | defaulttempl['filecopy'] = defaulttempl['file_copy'] |
|
|||
1454 | assert not (tmpl and mapfile) |
|
1445 | assert not (tmpl and mapfile) | |
|
1446 | defaulttempl = templatekw.defaulttempl | |||
1455 | if mapfile: |
|
1447 | if mapfile: | |
1456 | self.t = templater.templater.frommapfile(mapfile, |
|
1448 | self.t = templater.templater.frommapfile(mapfile, | |
1457 | cache=defaulttempl) |
|
1449 | cache=defaulttempl) |
@@ -204,6 +204,17 def getrenamedfn(repo, endrev=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: |
General Comments 0
You need to be logged in to leave comments.
Login now