##// END OF EJS Templates
files: add support for log-like template keywords and functions...
Yuya Nishihara -
r38560:7ae0ea73 default
parent child Browse files
Show More
@@ -2144,6 +2144,7 b' def files(ui, ctx, m, fm, fmt, subrepos)'
2144 needsfctx = ui.verbose or {'size', 'flags'} & fm.datahint()
2144 needsfctx = ui.verbose or {'size', 'flags'} & fm.datahint()
2145 for f in ctx.matches(m):
2145 for f in ctx.matches(m):
2146 fm.startitem()
2146 fm.startitem()
2147 fm.context(ctx=ctx)
2147 if needsfctx:
2148 if needsfctx:
2148 fc = ctx[f]
2149 fc = ctx[f]
2149 fm.write('size flags', '% 10d % 1s ', fc.size(), fc.flags())
2150 fm.write('size flags', '% 10d % 1s ', fc.size(), fc.flags())
@@ -41,6 +41,10 b' The next call is expected to return noth'
41 a 2
41 a 2
42 b/a 2 x
42 b/a 2 x
43 l 1 l
43 l 1 l
44 $ hg files -T '{path} {node|shortest}\n' -r.
45 a 5bdc
46 b/a 5bdc
47 l 5bdc
44
48
45 $ hg manifest -v
49 $ hg manifest -v
46 644 a
50 644 a
General Comments 0
You need to be logged in to leave comments. Login now