mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
Use list comprehension in hg status.
This commit is contained in:
parent
a159000a3d
commit
2616a4e21f
@ -1030,8 +1030,8 @@ def status(ui, repo, *pats, **opts):
|
||||
|
||||
cwd = repo.getcwd()
|
||||
files, matchfn = matchpats(cwd, pats, opts)
|
||||
(c, a, d, u) = repo.changes(files = files, match = matchfn)
|
||||
(c, a, d, u) = [map(lambda x: pathto(cwd, x), n) for n in c, a, d, u]
|
||||
(c, a, d, u) = [[pathto(cwd, x) for x in n]
|
||||
for n in repo.changes(files=files, match=matchfn)]
|
||||
|
||||
for f in c:
|
||||
ui.write("M ", f, "\n")
|
||||
|
Loading…
Reference in New Issue
Block a user