192 useful information. For each hook below, the environment variables |
192 useful information. For each hook below, the environment variables |
193 it is passed are listed with names of the form "$HG_foo". |
193 it is passed are listed with names of the form "$HG_foo". |
194 |
194 |
195 changegroup;; |
195 changegroup;; |
196 Run after a changegroup has been added via push, pull or |
196 Run after a changegroup has been added via push, pull or |
197 unbundle. ID of the first new changeset is in $HG_NODE. |
197 unbundle. ID of the first new changeset is in $HG_NODE. URL from |
|
198 which changes came is in $HG_URL. |
198 commit;; |
199 commit;; |
199 Run after a changeset has been created in the local repository. |
200 Run after a changeset has been created in the local repository. |
200 ID of the newly created changeset is in $HG_NODE. Parent |
201 ID of the newly created changeset is in $HG_NODE. Parent |
201 changeset IDs are in $HG_PARENT1 and $HG_PARENT2. |
202 changeset IDs are in $HG_PARENT1 and $HG_PARENT2. |
202 incoming;; |
203 incoming;; |
203 Run after a changeset has been pulled, pushed, or unbundled into |
204 Run after a changeset has been pulled, pushed, or unbundled into |
204 the local repository. The ID of the newly arrived changeset is in |
205 the local repository. The ID of the newly arrived changeset is in |
205 $HG_NODE. |
206 $HG_NODE. URL that was source of changes came is in $HG_URL. |
206 outgoing;; |
207 outgoing;; |
207 Run after sending changes from local repository to another. ID of |
208 Run after sending changes from local repository to another. ID of |
208 first changeset sent is in $HG_NODE. Source of operation is in |
209 first changeset sent is in $HG_NODE. Source of operation is in |
209 $HG_SOURCE; see "preoutgoing" hook for description. |
210 $HG_SOURCE; see "preoutgoing" hook for description. |
210 prechangegroup;; |
211 prechangegroup;; |
211 Run before a changegroup is added via push, pull or unbundle. |
212 Run before a changegroup is added via push, pull or unbundle. |
212 Exit status 0 allows the changegroup to proceed. Non-zero status |
213 Exit status 0 allows the changegroup to proceed. Non-zero status |
213 will cause the push, pull or unbundle to fail. |
214 will cause the push, pull or unbundle to fail. URL from which |
|
215 changes will come is in $HG_URL. |
214 precommit;; |
216 precommit;; |
215 Run before starting a local commit. Exit status 0 allows the |
217 Run before starting a local commit. Exit status 0 allows the |
216 commit to proceed. Non-zero status will cause the commit to fail. |
218 commit to proceed. Non-zero status will cause the commit to fail. |
217 Parent changeset IDs are in $HG_PARENT1 and $HG_PARENT2. |
219 Parent changeset IDs are in $HG_PARENT1 and $HG_PARENT2. |
218 preoutgoing;; |
220 preoutgoing;; |
234 but before the transaction has been committed. Changegroup is |
236 but before the transaction has been committed. Changegroup is |
235 visible to hook program. This lets you validate incoming changes |
237 visible to hook program. This lets you validate incoming changes |
236 before accepting them. Passed the ID of the first new changeset |
238 before accepting them. Passed the ID of the first new changeset |
237 in $HG_NODE. Exit status 0 allows the transaction to commit. |
239 in $HG_NODE. Exit status 0 allows the transaction to commit. |
238 Non-zero status will cause the transaction to be rolled back and |
240 Non-zero status will cause the transaction to be rolled back and |
239 the push, pull or unbundle will fail. |
241 the push, pull or unbundle will fail. URL that was source of |
|
242 changes is in $HG_URL. |
240 pretxncommit;; |
243 pretxncommit;; |
241 Run after a changeset has been created but the transaction not yet |
244 Run after a changeset has been created but the transaction not yet |
242 committed. Changeset is visible to hook program. This lets you |
245 committed. Changeset is visible to hook program. This lets you |
243 validate commit message and changes. Exit status 0 allows the |
246 validate commit message and changes. Exit status 0 allows the |
244 commit to proceed. Non-zero status will cause the transaction to |
247 commit to proceed. Non-zero status will cause the transaction to |