histedit: clarify description of fold command

N and (N-1) didn't add any information to description of fold.
More useful is refering to the commit list as it is displayed in editor.
run-tests: remove unnecessary variable initialisation

ret is always set before it is used, so remove ret = 0

--HG--
extra : rebase_source : d44a4aa192443d147af63f8ab0b48a9e92252fd8
run-tests: handle sys.exit in main function

--HG--
extra : rebase_source : 2ab75fb7aebccf0abcc48e1ae0246f5418783619
run-tests: introduce 'warned' as test result

While running, a test resulting in 'warned' is shown as '~'.
Test results with state warned are listed between the skipped and the failed
tests. Example:
Skipped test-revert-flags.t: missing feature: executable bit
Skipped test-inotify-lookup.t: missing feature: inotify extension support
Warned test-something.t: output changed
Failed test-largefiles.t: output changed
Failed test-subrepo.t: output changed
# Ran 11 tests, 2 skipped, 1 warned, 2 failed.


The test result "warned" will be used in later patches.

--HG--
extra : rebase_source : 5cf8adb032c4c5e5eecb1f5225cf67899044aebb
run-tests: separate exit code when no failed tests but warned ones

This can be used by buildbot to set the result "warnings" instead of "failed".

--HG--
extra : rebase_source : c789d834a898e987e0bccb395812952c37791840
run-tests: add possibility for test-runners to report a "warned" test result

A test result is recognized as "warned" when the test runner returns the exit
code False. (False is similar to 0, which is reporting a command has run
sucessfully.)

The only difference in display is that the failure message while running writes
"Warning:" instead of "ERROR:". The diff output is the same as when the test
fails. Runing "run-tests.py -i" asks to accept the changed result also for
tests reported as "warned".

When running tests, a "warned" test would look like this:
..
 --- xxxx\tests\test-something.t
 +++ xxxx\tests\test-something.t.err
@@ -1279,7 +1279,7 @@
   $ echo anything
   $ hg commit -S -m whatever
   committing subrepository s
-  committing subrepository s/sbs
+  committing subrepository s/sbs (glob)
   warning: something happened
   committing subrepository t
   $ echo something

Warning: xxxx\tests\test-sOMETHING.t output changed
~.s...s...s..


Reporting a test result as "warned" will be used in following patches.

--HG--
extra : rebase_source : c61d9fa7a95c9fc23b6d50d9e980113027a82025
run-tests: report a test as warned when only missing globs

On windows, some test reported as failed will now be reported as "warned".

--HG--
extra : rebase_source : ccd5253aa5ba0a80c4a3ab3c24f3d6df22dd00b4
run-tests: unnecessary globs also count as warnings

When a glob is unnecessary, now there's a diff output and 'run-tests.py -i'
works for accepting the output.
On windows, some tests which have "passed" currently (with some info lines
printed) will now be reported as "warned". (I recommend to recognize "warned"
by buildbot before applying this patch.)

--HG--
extra : rebase_source : ba72b08628f0ed176677e8fd0174fa2da4f43c69
histedit: shorten new fold message

Lots of people, like Mr. Check-Code, insist on using 80-column terminals.