mq: support "qimport --existing --name renametothis thatexistingpatch"
Before this change, the command would abort with a not too clear "patch
renametothis does not exist" error.
This change makes:
qimport --existing --name renametothis thatexistingpatch
equivalent to:
qimport --existing thatexistingpatch; qrename thatexistingpatch renametothis
#!/bin/sh
mkdir t
cd t
hg init
echo a > a
hg add a
hg commit -m test -d "1000000 0"
rm .hg/requires
hg tip
echo indoor-pool > .hg/requires
hg tip
true