Show More
@@ -2795,6 +2795,7 b' def identify(ui, repo, source=None, rev=' | |||||
2795 | fn.startitem() |
|
2795 | fn.startitem() | |
2796 | fn.data(rev=p.rev()) |
|
2796 | fn.data(rev=p.rev()) | |
2797 | fn.data(node=p.hex()) |
|
2797 | fn.data(node=p.hex()) | |
|
2798 | fn.context(ctx=p) | |||
2798 | fn.end() |
|
2799 | fn.end() | |
2799 | else: |
|
2800 | else: | |
2800 | hexoutput = hexfunc(ctx.node()) |
|
2801 | hexoutput = hexfunc(ctx.node()) | |
@@ -2834,6 +2835,7 b' def identify(ui, repo, source=None, rev=' | |||||
2834 | fm.data(branch=ctx.branch()) |
|
2835 | fm.data(branch=ctx.branch()) | |
2835 | fm.data(tags=fm.formatlist(taglist, name='tag', sep=':')) |
|
2836 | fm.data(tags=fm.formatlist(taglist, name='tag', sep=':')) | |
2836 | fm.data(bookmarks=fm.formatlist(ctx.bookmarks(), name='bookmark')) |
|
2837 | fm.data(bookmarks=fm.formatlist(ctx.bookmarks(), name='bookmark')) | |
|
2838 | fm.context(ctx=ctx) | |||
2837 |
|
2839 | |||
2838 | fm.plain("%s\n" % ' '.join(output)) |
|
2840 | fm.plain("%s\n" % ' '.join(output)) | |
2839 | fm.end() |
|
2841 | fm.end() |
@@ -56,6 +56,13 b' with options' | |||||
56 | } |
|
56 | } | |
57 | ] |
|
57 | ] | |
58 |
|
58 | |||
|
59 | test template keywords and functions which require changectx: | |||
|
60 | ||||
|
61 | $ hg id -T '{rev} {node|shortest}\n' | |||
|
62 | 2147483647 ffff | |||
|
63 | $ hg id -T '{parents % "{rev} {node|shortest} {desc}\n"}' | |||
|
64 | 0 cb9a a | |||
|
65 | ||||
59 | with modifications |
|
66 | with modifications | |
60 |
|
67 | |||
61 | $ echo b > a |
|
68 | $ echo b > a |
General Comments 0
You need to be logged in to leave comments.
Login now