Mercurial > hg > mercurial-source
comparison mercurial/commands.py @ 39329:ece3f2d0bbd9
manifest: add support for log-like template keywords and functions
"hg manifest --all" isn't supported since it has no single associated
revision.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 01 Jul 2018 22:06:53 +0900 (2018-07-01) |
parents | 1e25782a7583 |
children | e8c33e27ee9b |
comparison
equal
deleted
inserted
replaced
39328:7ae0ea739770 | 39329:ece3f2d0bbd9 |
---|---|
3681 ctx = scmutil.revsingle(repo, node) | 3681 ctx = scmutil.revsingle(repo, node) |
3682 mf = ctx.manifest() | 3682 mf = ctx.manifest() |
3683 ui.pager('manifest') | 3683 ui.pager('manifest') |
3684 for f in ctx: | 3684 for f in ctx: |
3685 fm.startitem() | 3685 fm.startitem() |
3686 fm.context(ctx=ctx) | |
3686 fl = ctx[f].flags() | 3687 fl = ctx[f].flags() |
3687 fm.condwrite(ui.debugflag, 'hash', '%s ', hex(mf[f])) | 3688 fm.condwrite(ui.debugflag, 'hash', '%s ', hex(mf[f])) |
3688 fm.condwrite(ui.verbose, 'mode type', '%s %1s ', mode[fl], char[fl]) | 3689 fm.condwrite(ui.verbose, 'mode type', '%s %1s ', mode[fl], char[fl]) |
3689 fm.write('path', '%s\n', f) | 3690 fm.write('path', '%s\n', f) |
3690 fm.end() | 3691 fm.end() |