hg qguard

hg qguard#

set or print guards for a patch#

hg qguard [-l] [-n] [PATCH] [-- [+GUARD]... [-GUARD]...]

This command is provided by the mq extension.

Guards control whether a patch can be pushed. A patch with no guards is always pushed. A patch with a positive guard ("+foo") is pushed only if the `hg qselect` command has activated it. A patch with a negative guard ("-foo") is never pushed if the `hg qselect` command has activated it.

With no arguments, print the currently active guards. With arguments, set guards for the named patch.

Note

Specifying negative guards now requires '--'.

To set guards on another patch:

hg qguard other.patch -- +2.6.17 -stable

Returns 0 on success.

Options

Every command accepts the global options.

-l

--list

list all patches and guards

-n

--none

drop all guards