mq: make qimport -f work properly. Closes
issue1255.
From Bernhard Leiner.
mq: do not invoke editor until just before patch creation. Closes
issue1346.
index parser: fix refcounting in case of errors, refactor
due to incorrect refcounting, on a bad revlog it was failing with:
*** glibc detected *** /usr/bin/python: corrupted double-linked list: 0x
0816d318 ***
and a backtrace.