minirst: use unicode string as intermediate form for replacement
Some character encodings use ASCII characters other than
control/alphabet/digit as a part of multi-bytes characters, so direct
replacing with such characters on strings in local encoding causes
invalid byte sequences.
subrepo: fix recording of + in .hgsubstate (
issue2217)
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.