mq: qimport cleanup on fail (
issue2214)
save state of successfully added patches and ensure
cleanup on the way out.
progress: check stderr.isatty() before each print
This prevents writing progress information to a non-tty stderr if one is
swapped in after startup, which happens in `hg serve`.
http digest auth: reset redirect counter on new requests (
issue2255)
This fixes a regression introduced in
a1e575b48563 when Mercurial reuses the
auth handler for several requests and the redirect counter never is reset.