Show More
@@ -2290,6 +2290,7 b' def _updatecatformatter(fm, ctx, matcher' | |||||
2290 | if decode: |
|
2290 | if decode: | |
2291 | data = ctx.repo().wwritedata(path, data) |
|
2291 | data = ctx.repo().wwritedata(path, data) | |
2292 | fm.startitem() |
|
2292 | fm.startitem() | |
|
2293 | fm.context(ctx=ctx) | |||
2293 | fm.write('data', '%s', data) |
|
2294 | fm.write('data', '%s', data) | |
2294 | fm.data(abspath=path, path=matcher.rel(path)) |
|
2295 | fm.data(abspath=path, path=matcher.rel(path)) | |
2295 |
|
2296 |
@@ -65,10 +65,10 b' Test fileset' | |||||
65 |
|
65 | |||
66 | Test template output |
|
66 | Test template output | |
67 |
|
67 | |||
68 | $ hg --cwd tmp cat ../b ../c -T '== {path} ({abspath}) ==\n{data}' |
|
68 | $ hg --cwd tmp cat ../b ../c -T '== {path} ({abspath}) r{rev} ==\n{data}' | |
69 | == ../b (b) == |
|
69 | == ../b (b) r2 == | |
70 | 1 |
|
70 | 1 | |
71 | == ../c (c) == |
|
71 | == ../c (c) r2 == | |
72 | 3 |
|
72 | 3 | |
73 |
|
73 | |||
74 | $ hg cat b c -Tjson --output - |
|
74 | $ hg cat b c -Tjson --output - |
General Comments 0
You need to be logged in to leave comments.
Login now