color: for the sake of "less -R", default to ansi in auto mode (
issue2792)
less with the -R option only supports ANSI color codes, and terminfo
mode issue non-ANSI color codes (depending on the database). The -r
option can work around this, but there are users currently using the
-R option, and defaulting to terminfo would break colorization in less
for them without warning.
color: fix TypeError with auto mode on win32 when colors aren't available (
issue2871)
This can happen when stdout isn't a terminal (e.g., it's being piped).
test-revert: add revert --all case when nothing changed
supposed to succeed without notice
subrepos: be smarter about what's an absolute path (
issue2808)
test-wireprotocol.py: rename to test-wireproto.py for consistency
1. The module named 'wireproto' is tested.
2. There already is a test-wireproto.t for related tests on shell level.
classes: fix class style problems found by
b071cd58af50
This makes test-wireprotocol.py work on Python 2.4
check-code: fix class style checking (with tests)
- old-style classes were only checked for one-letter class names
- add check for new-style classes with empty parent class, because
this is not available in Python 2.4
tests: ignore inotify extension in test-duplicateoptions.py
The inotify extension is only available on linux and setup.py will not install
it on other platforms - but it will of course always be there in the source.
test-duplicateoptions.py tried to load most extensions (including inotify if
available). When the local uninstalled Mercurial was used it would thus always
load the inotify extension and cause a warning on unsupported platforms.
The inotify extension is not relevant for this test, so now we explicitly
ignore it.
error: Add a hint argument to RepoError
This use the same mechanism than Abort. Except clause stay distinct
because RepoError add "!" at the end of the message.
test-revert: add revert --all case when nothing changed
supposed to succeed without notice