# HG changeset patch # User Thomas Arendsen Hein # Date 1122915493 -3600 # Node ID f0446f6963d25bd78c8d9b6e4b7c13cd7c1ec36d # Parent b678e6d4f92dc9ff6999c90d0b26bd6e2fbebab2 Use list comprehension in hg status. diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -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")