Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 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 | 89985a1b3427 |
children | 0932bc2fb2be a95c9b3fc3bf |
comparison
equal
deleted
inserted
replaced
822:b678e6d4f92d | 823:f0446f6963d2 |
---|---|
1028 R = removed | 1028 R = removed |
1029 ? = not tracked''' | 1029 ? = not tracked''' |
1030 | 1030 |
1031 cwd = repo.getcwd() | 1031 cwd = repo.getcwd() |
1032 files, matchfn = matchpats(cwd, pats, opts) | 1032 files, matchfn = matchpats(cwd, pats, opts) |
1033 (c, a, d, u) = repo.changes(files = files, match = matchfn) | 1033 (c, a, d, u) = [[pathto(cwd, x) for x in n] |
1034 (c, a, d, u) = [map(lambda x: pathto(cwd, x), n) for n in c, a, d, u] | 1034 for n in repo.changes(files=files, match=matchfn)] |
1035 | 1035 |
1036 for f in c: | 1036 for f in c: |
1037 ui.write("M ", f, "\n") | 1037 ui.write("M ", f, "\n") |
1038 for f in a: | 1038 for f in a: |
1039 ui.write("A ", f, "\n") | 1039 ui.write("A ", f, "\n") |