Show More
@@ -5277,18 +5277,22 b' def status(ui, repo, *pats, **opts):' | |||||
5277 | if (opts.get('all') or opts.get('copies')) and not opts.get('no_status'): |
|
5277 | if (opts.get('all') or opts.get('copies')) and not opts.get('no_status'): | |
5278 | copy = copies.pathcopies(repo[node1], repo[node2]) |
|
5278 | copy = copies.pathcopies(repo[node1], repo[node2]) | |
5279 |
|
5279 | |||
|
5280 | fm = ui.formatter('status', opts) | |||
|
5281 | format = '%s %s' + end | |||
|
5282 | if opts.get('no_status'): | |||
|
5283 | format = '%.0s%s' + end | |||
|
5284 | ||||
5280 | for state, char, files in changestates: |
|
5285 | for state, char, files in changestates: | |
5281 | if state in show: |
|
5286 | if state in show: | |
5282 | format = "%s %%s%s" % (char, end) |
|
5287 | label = 'status.' + state | |
5283 | if opts.get('no_status'): |
|
|||
5284 | format = "%%s%s" % end |
|
|||
5285 |
|
||||
5286 | for f in files: |
|
5288 | for f in files: | |
5287 | ui.write(format % repo.pathto(f, cwd), |
|
5289 | fm.startitem() | |
5288 | label='status.' + state) |
|
5290 | fm.write("status char", format, char, | |
|
5291 | repo.pathto(f, cwd), label=label) | |||
5289 | if f in copy: |
|
5292 | if f in copy: | |
5290 |
|
|
5293 | fm.write("copy", ' %s' + end, repo.pathto(copy[f], cwd), | |
5291 | label='status.copied') |
|
5294 | label='status.copied') | |
|
5295 | fm.end() | |||
5292 |
|
5296 | |||
5293 | @command('^summary|sum', |
|
5297 | @command('^summary|sum', | |
5294 | [('', 'remote', None, _('check for push and pull'))], '[--remote]') |
|
5298 | [('', 'remote', None, _('check for push and pull'))], '[--remote]') |
General Comments 0
You need to be logged in to leave comments.
Login now