Use list comprehension in hg status.
authorThomas Arendsen Hein <thomas@intevation.de>
Mon, 01 Aug 2005 17:58:13 +0100
changeset 823 f0446f6963d2
parent 822 b678e6d4f92d
child 824 0932bc2fb2be
child 837 a95c9b3fc3bf
Use list comprehension in hg status.
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")