##// END OF EJS Templates
smartset: use native set operations as fast paths...
smartset: use native set operations as fast paths For set operations like "&" and "-", where we know both basesets have their sets ready, and the first set is sorted, use the native Python set operations as a fast path. Note: "+" is not optimized as that will break the ordering. This leads to noticeable improvements on performance: revset | before | after | delta ---------------------------------------------------------------- draft() & draft() & draft() & draft() | 776 | 477 | -39% draft() + draft() + draft() + draft() | 2849 | 2864 | draft() - draft() + draft() - draft() | 943 | 240 | -75% draft() - draft() - draft() - draft() | 557 | 197 | -64% (time measured in microseconds)

File last commit:

r27350:89027334 default
r31020:2d1bf840 default
Show More
histedit-helpers.sh
7 lines | 229 B | application/x-sh | BashLexer
/ tests / histedit-helpers.sh
Augie Fackler
histedit: new extension for interactive history editing
r17064 fixbundle() {
grep -v 'saving bundle' | grep -v 'saved backup' | \
grep -v added | grep -v adding | \
grep -v "unable to find 'e' for patching" | \
timeless
tests: histedit-helpers fixbundle should not complain about no input
r27350 grep -v "e: No such file or directory" | \
cat
Augie Fackler
histedit: new extension for interactive history editing
r17064 }