# HG changeset patch # User Yuya Nishihara # Date 2018-07-01 13:06:53 # Node ID ece3f2d0bbd96867cb4ad9ec594ffbe5ed3aa8da # Parent 7ae0ea739770011869d4a1680f9cae91295c05e7 manifest: add support for log-like template keywords and functions "hg manifest --all" isn't supported since it has no single associated revision. diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -3683,6 +3683,7 @@ def manifest(ui, repo, node=None, rev=No ui.pager('manifest') for f in ctx: fm.startitem() + fm.context(ctx=ctx) fl = ctx[f].flags() fm.condwrite(ui.debugflag, 'hash', '%s ', hex(mf[f])) fm.condwrite(ui.verbose, 'mode type', '%s %1s ', mode[fl], char[fl]) diff --git a/tests/test-manifest.t b/tests/test-manifest.t --- a/tests/test-manifest.t +++ b/tests/test-manifest.t @@ -50,6 +50,10 @@ The next call is expected to return noth 644 a 755 * b/a 644 @ l + $ hg manifest -T '{path} {rev}\n' + a 1 + b/a 1 + l 1 $ hg manifest --debug b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 644 a