0

I have two Mercurial patches applied with MQ. I would like to fold them into one, but qfold requires the patches to be un-applied. Why? And how can I fold them without explicitly popping?

1 Answer 1

1

The patch to be folded needs to be un-applied, in order to be folded onto an applied (current) patch.

hg qfold [-e] [-k] [-m TEXT] [-l FILE] PATCH...

fold the named patches into the current patch

    Patches must not yet be applied. Each patch will be successively applied
    to the current patch in the order given. If all the patches apply
    successfully, the current patch will be refreshed with the new cumulative
    patch, and the folded patches will be deleted.

With only 2 patches, you only need to un-apply the last patch to fold it on the qbase patch.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.