##// END OF EJS Templates
Use list comprehension in hg status.
Thomas Arendsen Hein -
r823:f0446f69 default
parent child Browse files
Show More
@@ -1030,8 +1030,8 b' def status(ui, repo, *pats, **opts):'
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")
General Comments 0
You need to be logged in to leave comments. Login now