mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
hg status cleanups: Don't translate long options, remove stray semicolon.
This commit is contained in:
parent
fae6416bda
commit
2ed1adf167
@ -2425,11 +2425,11 @@ def status(ui, repo, *pats, **opts):
|
||||
[util.pathto(cwd, x) for x in n]
|
||||
for n in repo.changes(files=files, match=matchfn)]
|
||||
|
||||
changetypes = [(_('modified'), 'M', modified),
|
||||
(_('added'), 'A', added),
|
||||
(_('removed'), 'R', removed),
|
||||
(_('deleted'), '!', deleted),
|
||||
(_('unknown'), '?', unknown)]
|
||||
changetypes = [('modified', 'M', modified),
|
||||
('added', 'A', added),
|
||||
('removed', 'R', removed),
|
||||
('deleted', '!', deleted),
|
||||
('unknown', '?', unknown)]
|
||||
|
||||
end = opts['print0'] and '\0' or '\n'
|
||||
|
||||
@ -2438,7 +2438,7 @@ def status(ui, repo, *pats, **opts):
|
||||
if opts['no_status']:
|
||||
format = "%%s%s" % end
|
||||
else:
|
||||
format = "%s %%s%s" % (char, end);
|
||||
format = "%s %%s%s" % (char, end)
|
||||
|
||||
for f in changes:
|
||||
ui.write(format % f)
|
||||
|
Loading…
Reference in New Issue
Block a user