##// 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 def files(ui, ctx, m, fm, fmt, subrepos)
2144 2144 needsfctx = ui.verbose or {'size', 'flags'} & fm.datahint()
2145 2145 for f in ctx.matches(m):
2146 2146 fm.startitem()
2147 fm.context(ctx=ctx)
2147 2148 if needsfctx:
2148 2149 fc = ctx[f]
2149 2150 fm.write('size flags', '% 10d % 1s ', fc.size(), fc.flags())
@@ -41,6 +41,10 The next call is expected to return noth
41 41 a 2
42 42 b/a 2 x
43 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 49 $ hg manifest -v
46 50 644 a
General Comments 0
You need to be logged in to leave comments. Login now