##// 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 "strip": lambda x: x.strip(),
310 "strip": lambda x: x.strip(),
311 "urlescape": lambda x: urllib.quote(x),
311 "urlescape": lambda x: urllib.quote(x),
312 "user": lambda x: util.shortuser(x),
312 "user": lambda x: util.shortuser(x),
313 "stringescape": lambda x: x.encode('string_escape'),
313 }
314 }
314
315
315 def templatepath(name=None):
316 def templatepath(name=None):
@@ -464,6 +465,14 b' class changeset_templater(object):'
464 for x in showlist('tag', self.repo.nodetags(changenode), **args):
465 for x in showlist('tag', self.repo.nodetags(changenode), **args):
465 yield x
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 if self.ui.debugflag:
476 if self.ui.debugflag:
468 files = self.repo.status(log.parents(changenode)[0], changenode)[:3]
477 files = self.repo.status(log.parents(changenode)[0], changenode)[:3]
469 def showfiles(**args):
478 def showfiles(**args):
@@ -499,6 +508,7 b' class changeset_templater(object):'
499 'parents': showparents,
508 'parents': showparents,
500 'rev': rev,
509 'rev': rev,
501 'tags': showtags,
510 'tags': showtags,
511 'extras': showextras,
502 }
512 }
503 props = props.copy()
513 props = props.copy()
504 props.update(defprops)
514 props.update(defprops)
@@ -1,7 +1,7 b''
1 changeset = 'changeset: {rev}:{node|short}\n{branches}{tags}{short_parents}user: {author}\ndate: {date|date}\nsummary: {desc|firstline}\n\n'
1 changeset = 'changeset: {rev}:{node|short}\n{branches}{tags}{short_parents}user: {author}\ndate: {date|date}\nsummary: {desc|firstline}\n\n'
2 changeset_quiet = '{rev}:{node|short}\n'
2 changeset_quiet = '{rev}:{node|short}\n'
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'
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 start_files = 'files: '
5 start_files = 'files: '
6 file = ' {file}'
6 file = ' {file}'
7 end_files = '\n'
7 end_files = '\n'
@@ -19,3 +19,4 b" parent = 'parent: {rev}:{node}\\n'"
19 manifest = 'manifest: {rev}:{node}\n'
19 manifest = 'manifest: {rev}:{node}\n'
20 branch = 'branch: {branch}\n'
20 branch = 'branch: {branch}\n'
21 tag = 'tag: {tag}\n'
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