Now I have more patches applied in my local repository.
When detecting an error, I changed the error in the code, but it belongs
to an earlier patch than the topmost which is now active.
To get the changes there, I do now
hg diff > /tmp/patch
hg qgoto targetpatch
hg import --no-commit /tmp/patch
This allows me to move source changes to a different patch .