Mercurial > hg
changeset 823:f0446f6963d2
Use list comprehension in hg status.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Mon, 01 Aug 2005 17:58:13 +0100 |
parents | b678e6d4f92d |
children | 0932bc2fb2be a95c9b3fc3bf |
files | mercurial/commands.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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")