MQ’s Rules for Applying Patches

The rules that MQ uses when deciding whether to apply a patch are as follows:

  • A patch that has no guards is always applied.

  • If the patch has any negative guard that matches any currently selected guard, the patch is skipped.

  • If the patch has any positive guard that matches any currently selected guard, the patch is applied.

  • If the patch has positive or negative guards, but none matches any currently selected guard, the patch is skipped.

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.