Hook Reference
changegroup—After Remote Changesets Added
This hook is run after a group of pre-existing
changesets has been added to the repository, for example via hg pull or hg
unbundle. This hook is run once per operation that added one or
more changesets. This is in contrast to the incoming
hook, which is run once per changeset,
regardless of whether the changesets arrived in a group.
Some possible uses for this hook include kicking off an automated build or test of the added changesets, updating a bug database, or notifying subscribers that a repository contains new changes.
Parameters to this hook:
node
: A changeset ID. The changeset ID of the first changeset in the group that was added. All changesets between this andtip
, inclusive, were added by a single hg pull, hg push, or hg unbundle.source
: A string. The source of these changes. See Sources of changesets for details.url
: A URL. The location of the remote repository, if known. See Where changes are going—remote repository URLs for more information.
See also: incoming
(incoming—After One Remote Changeset Is Added), prechangegroup
(prechangegroup—Before Starting to Add Remote Changesets), pretxnchangegroup
(pretxnchangegroup—Before Completing Addition of Remote
Changesets)
commit—After a New Changeset Is Created
This hook is run after a new changeset has been created.
Parameters to this hook:
node
: A changeset ID. The changeset ID of the newly committed changeset.parent1
: A changeset ID. The changeset ID of the first parent of ...
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.