[PATCH 2 of 4] Fix up walk and changes code
Thomas Arendsen Hein
thomas at intevation.de
Mon Aug 1 00:49:40 CDT 2005
* Bryan O'Sullivan <bos at serpentine.com> [20050801 04:10]:
> (c, a, d, u) = repo.changes(files = files, match = matchfn)
> - (c, a, d, u) = map(lambda x: relfilter(repo, x), (c, a, d, u))
> + (c, a, d, u) = [map(lambda x: pathto(cwd, x), n) for n in c, a, d, u]
Huh, this looks like apples and pears on a cherry tree :)
These lines can be combined into:
(c, a, d, u) = [[pathto(cwd, x) for x in n]
for n in repo.changes(files=files, match=matchfn)]
Thomas
--
Email: thomas at intevation.de
http://intevation.de/~thomas/
More information about the Mercurial
mailing list