# HG changeset patch # User Thomas Arendsen Hein # Date 1122915493 -3600 # Node ID f0446f6963d25bd78c8d9b6e4b7c13cd7c1ec36d # Parent b678e6d4f92dc9ff6999c90d0b26bd6e2fbebab2 Use list comprehension in hg status. diff -r b678e6d4f92d -r f0446f6963d2 mercurial/commands.py --- a/mercurial/commands.py Sun Jul 31 18:03:46 2005 -0800 +++ b/mercurial/commands.py Mon Aug 01 17:58:13 2005 +0100 @@ -1030,8 +1030,8 @@ 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")