Mercurial.Hooks Namespace

Class Types

Class Summary
MercurialChangeGroupHook This MercurialHookBase descendant implements the code necessary to handle the "changegroup" hook: This is run after a group of changesets has been brought into the repository from elsewhere.
MercurialCommandHookArgumentsCollection This class is used by MercurialPreCommandHook and MercurialPostCommandHook to hold the positional arguments to the Mercurial command.
MercurialCommandHookDataStructureBase This is the base class for MercurialCommandHookDictionary and MercurialCommandHookPatternCollection
MercurialCommandHookDictionary This class is used by MercurialPreCommandHook and MercurialPostCommandHook to hold the options to the Mercurial command.
MercurialCommandHookPatternCollection This class is used by MercurialPreCommandHook and MercurialPostCommandHook to hold the options to the Mercurial command.
MercurialCommitHook This MercurialHookBase descendant implements the code necessary to handle the "commit" hook: This is run after a new changeset has been created in the local repository.
MercurialControllingHookBase This is the base class for Mercurial hook type implementations that are of type "controlling", that is that they can determine whether the Mercurial command being executed is allowed to proceed or not.
MercurialHookBase This is the base class for Mercurial hook type implementations.
MercurialIncomingHook This MercurialHookBase descendant implements the code necessary to handle the "incoming" hook: This is run once for each new changeset that is brought into the repository from elsewhere.
MercurialListKeysHook This MercurialHookBase descendant implements the code necessary to handle the "listkeys" hook: This is run after listing pushkeys (like bookmarks) in the repository.
MercurialOutgoingHook This MercurialHookBase descendant implements the code necessary to handle the "outgoing" hook: This is run after sending changes from local repository to another.
MercurialPostCommandHook This MercurialControllingHookBase descendant implements the code necessary to handle the "post-command" hook: This is run after the command itself has finished executing.
MercurialPreChangegroupHook This MercurialControllingHookBase descendant implements the code necessary to handle the "prechangegroup" hook: This is run before a changegroup is added via push, pull, or bundle.
MercurialPreCommandHook This MercurialControllingHookBase descendant implements the code necessary to handle the "pre-command" hook: This is run before the command itself has started executing.
MercurialPreCommitHook This MercurialHookBase descendant implements the code necessary to handle the "precommit" hook: This is run before starting a commit (note, the commit command has started executing, and can have addes files, etc. See the MercurialPreCommitCommandHook for a way to intercept the entire commit command.)
MercurialPreListKeysHook This MercurialControllingHookBase descendant implements the code necessary to handle the "prelistkeys" hook: This is run before listing pushkeys (like bookmarks) in the repository.
MercurialPreOutgoingHook This MercurialControllingHookBase descendant implements the code necessary to handle the "preoutgoing" hook: This is run before collecting changes to send from the local repository to another.
MercurialPrePushKeyHook This MercurialControllingHookBase descendant implements the code necessary to handle the "prepushkey" hook: This is run before a pushkey (like a bookmark) is added to the repository.
MercurialPreTagHook This MercurialControllingHookBase descendant implements the code necessary to handle the "pretag" hook: This is run before creating a tag.
MercurialPreTransactionChangegroupHook This MercurialControllingHookBase descendant implements the code necessary to handle the "pretxnchangegroup" hook: This is run after a changegroup has been added via push, pull, or unbundle, but before the transaction has been committed.
MercurialPreTransactionCommitHook This MercurialControllingHookBase descendant implements the code necessary to handle the "pretxncommit" hook: This is run after a changeset has been created but the transaction not yet committed.
MercurialPreUpdateHook This MercurialControllingHookBase descendant implements the code necessary to handle the "preupdate" hook: This is run before updating the working directory.
MercurialPushKeyHook This MercurialHookBase descendant implements the code necessary to handle the "pushkey" hook: This is run after a pushkey (like a bookmark) has been added to the repository.
MercurialTagHook This MercurialHookBase descendant implements the code necessary to handle the "tag" hook: This is run after a tag has been created.
MercurialUpdateHook This MercurialHookBase descendant implements the code necessary to handle the "update" hook: This is run after updating the working directory.

Interface Types

Interface Summary
IMercurialControllingHook This interface must be implementing by all controlling hooks.