topic-revset: update the revset to no longer build changectx
Atribute access is expensive, and changectx are very expensive to build, so we
skip these for better performance.
Before:
! wall 0.012195 comb 0.020000 user 0.020000 sys 0.000000 (best of 217)
After:
! wall 0.008816 comb 0.010000 user 0.010000 sys 0.000000 (best of 303)
(Before this changeset parent)
! wall 0.213261 comb 0.210000 user 0.210000 sys 0.000000 (best of 45)
#require test-repo
$ checkflake8() {
> if ! (which flake8 > /dev/null); then
> echo skipped: missing tool: flake8;
> exit 80;
> fi;
> };
$ checkflake8
Copied from Mercurial core (60ee2593a270)
$ cd "`dirname "$TESTDIR"`"
run flake8 if it exists; if it doesn't, then just skip
$ hg files -0 'set:(**.py or grep("^#!.*python")) - removed()' 2>/dev/null \
> | xargs -0 flake8