Mercurial > hg > pyhgsh
comparison doc/hgrc.5.txt @ 2266:3f7692b0ff13
hooks: add preupdate and update hooks.
preupdate run before working dir updated. can prevent update.
update run after working dir updated.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Thu, 11 May 2006 10:14:48 -0700 |
parents | b8b7a79a4d88 |
children | 066d0055e430 |
comparison
equal
deleted
inserted
replaced
2265:3e4a1a0739c2 | 2266:3f7692b0ff13 |
---|---|
217 committed. Changeset is visible to hook program. This lets you | 217 committed. Changeset is visible to hook program. This lets you |
218 validate commit message and changes. Exit status 0 allows the | 218 validate commit message and changes. Exit status 0 allows the |
219 commit to proceed. Non-zero status will cause the transaction to | 219 commit to proceed. Non-zero status will cause the transaction to |
220 be rolled back. ID of changeset is in $HG_NODE. Parent changeset | 220 be rolled back. ID of changeset is in $HG_NODE. Parent changeset |
221 IDs are in $HG_PARENT1 and $HG_PARENT2. | 221 IDs are in $HG_PARENT1 and $HG_PARENT2. |
222 preupdate;; | |
223 Run before updating the working directory. Exit status 0 allows | |
224 the update to proceed. Non-zero status will prevent the update. | |
225 Changeset ID of first new parent is in $HG_PARENT1. If merge, ID | |
226 of second new parent is in $HG_PARENT2. | |
222 tag;; | 227 tag;; |
223 Run after a tag is created. ID of tagged changeset is in | 228 Run after a tag is created. ID of tagged changeset is in |
224 $HG_NODE. Name of tag is in $HG_TAG. Tag is local if | 229 $HG_NODE. Name of tag is in $HG_TAG. Tag is local if |
225 $HG_LOCAL=1, in repo if $HG_LOCAL=0. | 230 $HG_LOCAL=1, in repo if $HG_LOCAL=0. |
231 update;; | |
232 Run after updating the working directory. Changeset ID of first | |
233 new parent is in $HG_PARENT1. If merge, ID of second new parent | |
234 is in $HG_PARENT2. If update succeeded, $HG_ERROR=0. If update | |
235 failed (e.g. because conflicts not resolved), $HG_ERROR=1. | |
226 | 236 |
227 In earlier releases, the names of hook environment variables did not | 237 In earlier releases, the names of hook environment variables did not |
228 have a "HG_" prefix. These unprefixed names are still provided in | 238 have a "HG_" prefix. These unprefixed names are still provided in |
229 the environment for backwards compatibility, but their use is | 239 the environment for backwards compatibility, but their use is |
230 deprecated, and they will be removed in a future release. | 240 deprecated, and they will be removed in a future release. |