Show More
@@ -5191,7 +5191,7 b' def status(ui, repo, *pats, **opts):' | |||
|
5191 | 5191 | fm.condwrite(showchar, 'status', '%s ', char, label=label) |
|
5192 | 5192 | fm.plain(fmt % repo.pathto(f, cwd), label=label) |
|
5193 | 5193 | if f in copy: |
|
5194 |
fm.data( |
|
|
5194 | fm.data(source=copy[f]) | |
|
5195 | 5195 | fm.plain((' %s' + end) % repo.pathto(copy[f], cwd), |
|
5196 | 5196 | label='status.copied') |
|
5197 | 5197 |
@@ -74,7 +74,7 b' description = \'{if(desc|strip, "{label(\'' | |||
|
74 | 74 | {label('ui.note log.description', |
|
75 | 75 | '{desc|strip}')}\n\n")}' |
|
76 | 76 | |
|
77 |
status = '{status} {path|relpath}\n{if( |
|
|
77 | status = '{status} {path|relpath}\n{if(source, " {source|relpath}\n")}' | |
|
78 | 78 | |
|
79 | 79 | # Obsfate templates, it would be removed once we introduce the obsfate |
|
80 | 80 | # template fragment |
@@ -239,8 +239,8 b' hg status -A:' | |||
|
239 | 239 | "status": "A" |
|
240 | 240 | }, |
|
241 | 241 | { |
|
242 | "copy": "modified", | |
|
243 | 242 | "path": "copied", |
|
243 | "source": "modified", | |
|
244 | 244 | "status": "A" |
|
245 | 245 | }, |
|
246 | 246 | { |
@@ -282,7 +282,7 b' hg status -A:' | |||
|
282 | 282 | |
|
283 | 283 | Test templater support: |
|
284 | 284 | |
|
285 |
$ hg status -AT "[{status}]\t{if( |
|
|
285 | $ hg status -AT "[{status}]\t{if(source, '{source} -> ')}{path}\n" | |
|
286 | 286 | [M] .hgignore |
|
287 | 287 | [A] added |
|
288 | 288 | [A] modified -> copied |
General Comments 0
You need to be logged in to leave comments.
Login now