Mercurial > public > mercurial-scm > hg-stable
diff templates/map-cmdline.default @ 4352:051fb8c2567c
command line templates: add formatnode filter
This will print a full hash node with --debug and a short one otherwise.
Use it with some default templates and in map-cmdline.default to print
the parents. This should fix issue538.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Mon, 16 Apr 2007 13:00:23 -0300 |
parents | fab28100ea88 |
children | 5a124ce4602a |
line wrap: on
line diff
--- a/templates/map-cmdline.default Mon Apr 16 13:00:23 2007 -0300 +++ b/templates/map-cmdline.default Mon Apr 16 13:00:23 2007 -0300 @@ -1,4 +1,4 @@ -changeset = 'changeset: {rev}:{node|short}\n{branches}{tags}{short_parents}user: {author}\ndate: {date|date}\nsummary: {desc|firstline}\n\n' +changeset = 'changeset: {rev}:{node|short}\n{branches}{tags}{parents}user: {author}\ndate: {date|date}\nsummary: {desc|firstline}\n\n' changeset_quiet = '{rev}:{node|short}\n' 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' 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' @@ -14,8 +14,7 @@ start_file_copies = 'copies: ' file_copy = ' {name} ({source})' end_file_copies = '\n' -short_parent = 'parent: {rev}:{node|short}\n' -parent = 'parent: {rev}:{node}\n' +parent = 'parent: {rev}:{node|formatnode}\n' manifest = 'manifest: {rev}:{node}\n' branch = 'branch: {branch}\n' tag = 'tag: {tag}\n'