Useful Things to Know About

There are a number of aspects of MQ usage that don’t fit tidily into sections of their own, but that are good to know. Here they are, in one place.

  • Normally, when you qpop a patch and qpush it again, the changeset that represents the patch after the pop/push will have a different identity from the changeset that represented the hash beforehand. See qpush—Push Patches onto the Stack for information as to why this is.

  • It’s not a good idea to hg merge changes from another branch with a patch changeset, at least if you want to maintain the patchiness of that changeset and changesets below it on the patch stack. If you try to do this, it will appear to succeed, but MQ will become confused.

Get Mercurial: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.