Here is two small patch which prevent mq to qimport immutable changeset. A patch preventing rebase to delete immutable changeset is mostly written too but rebase test make massive use of clone. As clone seems to improperly handle phase, the rebase patch is delayed until clone are fixed.