Mercurial > hg
comparison doc/hgrc.5.txt @ 1730:0f1d2c75db5e
add prechangegroup and pretxnchangegroup hooks.
prechangegroup lets you stop push, pull or unbundle before it begins.
pretxnchangegroup lets you inspect changegroup before transaction is
committed, and roll back if you not like it.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Wed, 15 Feb 2006 10:49:30 -0800 |
parents | 801756d0ca84 |
children | d3e6da334b85 |
comparison
equal
deleted
inserted
replaced
1729:ace6d26f78f1 | 1730:0f1d2c75db5e |
---|---|
144 incoming = | 144 incoming = |
145 incoming.email = /my/email/hook | 145 incoming.email = /my/email/hook |
146 incoming.autobuild = /my/build/hook | 146 incoming.autobuild = /my/build/hook |
147 | 147 |
148 changegroup;; | 148 changegroup;; |
149 Run after a changegroup has been added via push or pull. Passed | 149 Run after a changegroup has been added via push, pull or |
150 the ID of the first new changeset in $NODE. | 150 unbundle. Passed the ID of the first new changeset in $NODE. |
151 commit;; | 151 commit;; |
152 Run after a changeset has been created in the local repository. | 152 Run after a changeset has been created in the local repository. |
153 Passed the ID of the newly created changeset in environment | 153 Passed the ID of the newly created changeset in environment |
154 variable $NODE. Parent changeset IDs in $P1 and $P2. | 154 variable $NODE. Parent changeset IDs in $P1 and $P2. |
155 incoming;; | 155 incoming;; |
156 Run after a changeset has been pulled, pushed, or unbundled into | 156 Run after a changeset has been pulled, pushed, or unbundled into |
157 the local repository. Passed the ID of the newly arrived | 157 the local repository. Passed the ID of the newly arrived |
158 changeset in environment variable $NODE. | 158 changeset in environment variable $NODE. |
159 prechangegroup;; | |
160 Run before a changegroup is added via push, pull or unbundle. | |
161 Exit status 0 allows the changegroup to proceed. Non-zero status | |
162 will cause the push, pull or unbundle to fail. | |
159 precommit;; | 163 precommit;; |
160 Run before starting a local commit. Exit status 0 allows the | 164 Run before starting a local commit. Exit status 0 allows the |
161 commit to proceed. Non-zero status will cause the commit to | 165 commit to proceed. Non-zero status will cause the commit to |
162 fail. Parent changeset IDs in $P1 and $P2. | 166 fail. Parent changeset IDs in $P1 and $P2. |
163 pretag;; | 167 pretag;; |
164 Run before creating a tag. Exit status 0 allows the tag to be | 168 Run before creating a tag. Exit status 0 allows the tag to be |
165 created. Non-zero status will cause the tag to fail. ID of | 169 created. Non-zero status will cause the tag to fail. ID of |
166 changeset to tag in $NODE. Name of tag in $TAG. Tag is local if | 170 changeset to tag in $NODE. Name of tag in $TAG. Tag is local if |
167 $LOCAL=1, in repo if $LOCAL=0. | 171 $LOCAL=1, in repo if $LOCAL=0. |
172 pretxnchangegroup;; | |
173 Run after a changegroup has been added via push, pull or unbundle, | |
174 but before the transaction has been committed. Changegroup is | |
175 visible to hook program. This lets you validate incoming changes | |
176 before accepting them. Passed the ID of the first new changeset | |
177 in $NODE. Exit status 0 allows the transaction to commit. | |
178 Non-zero status will cause the transaction to be rolled back and | |
179 the push, pull or unbundle will fail. | |
168 pretxncommit;; | 180 pretxncommit;; |
169 Run after a changeset has been created but the transaction not yet | 181 Run after a changeset has been created but the transaction not yet |
170 committed. Changeset is visible to hook program. This lets you | 182 committed. Changeset is visible to hook program. This lets you |
171 validate commit message and changes. Exit status 0 allows the | 183 validate commit message and changes. Exit status 0 allows the |
172 commit to proceed. Non-zero status will cause the transaction to | 184 commit to proceed. Non-zero status will cause the transaction to |