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