##// END OF EJS Templates
status: add support for log-like template keywords and functions...
Yuya Nishihara -
r38563:85e3aa21 @67 default
parent child Browse files
Show More
@@ -5117,6 +5117,7 b' def status(ui, repo, *pats, **opts):'
5117 label = 'status.' + state
5117 label = 'status.' + state
5118 for f in files:
5118 for f in files:
5119 fm.startitem()
5119 fm.startitem()
5120 fm.context(ctx=ctx2)
5120 fm.condwrite(showchar, 'status', '%s ', char, label=label)
5121 fm.condwrite(showchar, 'status', '%s ', char, label=label)
5121 fm.write('path', fmt, repo.pathto(f, cwd), label=label)
5122 fm.write('path', fmt, repo.pathto(f, cwd), label=label)
5122 if f in copy:
5123 if f in copy:
@@ -213,6 +213,16 b' hg status -A:'
213 C .hgignore
213 C .hgignore
214 C modified
214 C modified
215
215
216 $ hg status -A -T '{status} {path} {node|shortest}\n'
217 A added ffff
218 A copied ffff
219 R removed ffff
220 ! deleted ffff
221 ? unknown ffff
222 I ignored ffff
223 C .hgignore ffff
224 C modified ffff
225
216 $ hg status -A -Tjson
226 $ hg status -A -Tjson
217 [
227 [
218 {
228 {
General Comments 0
You need to be logged in to leave comments. Login now