##// END OF EJS Templates
Added extra changeset info to templater and map-cmdline.default.
Thomas Arendsen Hein -
r3462:fab28100 default
parent child Browse files
Show More
@@ -310,6 +310,7 b' common_filters = {'
310 310 "strip": lambda x: x.strip(),
311 311 "urlescape": lambda x: urllib.quote(x),
312 312 "user": lambda x: util.shortuser(x),
313 "stringescape": lambda x: x.encode('string_escape'),
313 314 }
314 315
315 316 def templatepath(name=None):
@@ -464,6 +465,14 b' class changeset_templater(object):'
464 465 for x in showlist('tag', self.repo.nodetags(changenode), **args):
465 466 yield x
466 467
468 def showextras(**args):
469 extras = changes[5].items()
470 extras.sort()
471 for key, value in extras:
472 args = args.copy()
473 args.update(dict(key=key, value=value))
474 yield self.t('extra', **args)
475
467 476 if self.ui.debugflag:
468 477 files = self.repo.status(log.parents(changenode)[0], changenode)[:3]
469 478 def showfiles(**args):
@@ -499,6 +508,7 b' class changeset_templater(object):'
499 508 'parents': showparents,
500 509 'rev': rev,
501 510 'tags': showtags,
511 'extras': showextras,
502 512 }
503 513 props = props.copy()
504 514 props.update(defprops)
@@ -1,7 +1,7 b''
1 1 changeset = 'changeset: {rev}:{node|short}\n{branches}{tags}{short_parents}user: {author}\ndate: {date|date}\nsummary: {desc|firstline}\n\n'
2 2 changeset_quiet = '{rev}:{node|short}\n'
3 3 changeset_verbose = 'changeset: {rev}:{node|short}\n{branches}{tags}{parents}{manifest}user: {author}\ndate: {date|date}\n{files}{file_adds}{file_dels}{file_copies}description:\n{desc|strip}\n\n\n'
4 changeset_debug = 'changeset: {rev}:{node}\n{branches}{tags}{parents}{manifest}user: {author}\ndate: {date|date}\n{files}{file_adds}{file_dels}{file_copies}description:\n{desc|strip}\n\n\n'
4 changeset_debug = 'changeset: {rev}:{node}\n{branches}{tags}{parents}{manifest}user: {author}\ndate: {date|date}\n{files}{file_adds}{file_dels}{file_copies}{extras}description:\n{desc|strip}\n\n\n'
5 5 start_files = 'files: '
6 6 file = ' {file}'
7 7 end_files = '\n'
@@ -19,3 +19,4 b" parent = 'parent: {rev}:{node}\\n'"
19 19 manifest = 'manifest: {rev}:{node}\n'
20 20 branch = 'branch: {branch}\n'
21 21 tag = 'tag: {tag}\n'
22 extra = 'extra: {key}={value|stringescape}\n'
General Comments 0
You need to be logged in to leave comments. Login now