This patch series improves performance of some revset predicates on large repositories. This mainly focuses on replacing "list(repo)" and "repo.changelog" by "repo" (wrapped one, in fact) to avoid immediate creation of and scanning on (large) list.