Show More
@@ -378,12 +378,12 b' class changeset_templater(object):' | |||||
378 | startname = 'start_' + names |
|
378 | startname = 'start_' + names | |
379 | if startname in self.t: |
|
379 | if startname in self.t: | |
380 | yield self.t(startname, **args) |
|
380 | yield self.t(startname, **args) | |
381 | def one(v): |
|
381 | def one(v, tag=name): | |
382 | try: |
|
382 | try: | |
383 | vargs.update(v) |
|
383 | vargs.update(v) | |
384 | except ValueError: |
|
384 | except ValueError: | |
385 | vargs.update([(name, v)]) |
|
385 | vargs.update([(name, v)]) | |
386 |
return self.t( |
|
386 | return self.t(tag, **vargs) | |
387 | lastname = 'last_' + name |
|
387 | lastname = 'last_' + name | |
388 | if lastname in self.t: |
|
388 | if lastname in self.t: | |
389 | last = values.pop() |
|
389 | last = values.pop() | |
@@ -392,8 +392,7 b' class changeset_templater(object):' | |||||
392 | for v in values: |
|
392 | for v in values: | |
393 | yield one(v) |
|
393 | yield one(v) | |
394 | if last is not None: |
|
394 | if last is not None: | |
395 |
|
|
395 | yield one(last, tag=lastname) | |
396 | yield one(last) |
|
|||
397 | endname = 'end_' + names |
|
396 | endname = 'end_' + names | |
398 | if endname in self.t: |
|
397 | if endname in self.t: | |
399 | yield self.t(endname, **args) |
|
398 | yield self.t(endname, **args) |
@@ -1,4 +1,7 b'' | |||||
1 | template = '{rev}{parents} {node|short} {date|isodate} {author|user}\n {desc|firstline|strip}\n\n' |
|
1 | template = '{rev}{tags}{parents} {node|short} {date|isodate} {author|user}\n {desc|firstline|strip}\n\n' | |
|
2 | start_tags = '[' | |||
|
3 | tag = '{tag},' | |||
|
4 | last_tag = '{tag}]' | |||
2 | start_parents = ':' |
|
5 | start_parents = ':' | |
3 | parent = '{rev},' |
|
6 | parent = '{rev},' | |
4 | last_parent = '{rev}' |
|
7 | last_parent = '{rev}' |
General Comments 0
You need to be logged in to leave comments.
Login now