tests: port extension in test-narrow-expanddirstate.t to Python 3
Differential Revision: https://phab.mercurial-scm.org/D2365
py3: use list comprehensions instead of filter where we need to eagerly filter
These two uses of filter() are then checked for truthiness, but on Python 3:
>>> bool(filter(None, []))
True
So we need to stop depending on that. Fortunately it's easy to replace
the filter with an equivalent list comprehension.
Differential Revision: https://phab.mercurial-scm.org/D2364
narrow: use list comprehension instead of filter for filtering lists
filter() returns a generator on Python 3, which causes these filters
to break things.
Differential Revision: https://phab.mercurial-scm.org/D2363
py3: whitelist another eight passing tests
Differential Revision: https://phab.mercurial-scm.org/D2362
mq: don't reimplement any()
Differential Revision: https://phab.mercurial-scm.org/D2376
mq: don't reimplement any()
Differential Revision: https://phab.mercurial-scm.org/D2375
strip: don't reimplement any()
Differential Revision: https://phab.mercurial-scm.org/D2374
convert: don't reimplement any()
Differential Revision: https://phab.mercurial-scm.org/D2373
verify: don't reimplement any()
Differential Revision: https://phab.mercurial-scm.org/D2372
walkrepos: don't reimplement any()
Differential Revision: https://phab.mercurial-scm.org/D2371
py3: make sure we open file in bytes mode
Differential Revision: https://phab.mercurial-scm.org/D2360
py3: add b'' to test-ui-color.py
# skip-blame because just b'' prefixes
Differential Revision: https://phab.mercurial-scm.org/D2359
debuginstall: strip double quotes from editorbin on Windows
The unconditional posix style shlex.split() prior to
94a1ff16f362 handled this.
This isn't mutually exclusive with stripping the quotes in util.findexe()- if
the editor can't be found, this command prints out the string, inside single
quotes.