comparison doc/hgrc.5.txt @ 1737:2c9872a4f3fd

Merge with crew
author Matt Mackall <mpm@selenic.com>
date Fri, 17 Feb 2006 17:39:05 -0600
parents 50de0887bbcd
children e431344e604c
comparison
equal deleted inserted replaced
1716:ef8cd889a78b 1737:2c9872a4f3fd
143 # do not use the site-wide hook 143 # do not use the site-wide hook
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 Most hooks are run with environment variables set that give added
149 useful information. For each hook below, the environment variables
150 it is passed are listed with names of the form "$HG_foo".
151
148 changegroup;; 152 changegroup;;
149 Run after a changegroup has been added via push or pull. Passed 153 Run after a changegroup has been added via push, pull or
150 the ID of the first new changeset in $NODE. 154 unbundle. ID of the first new changeset is in $HG_NODE.
151 commit;; 155 commit;;
152 Run after a changeset has been created in the local repository. 156 Run after a changeset has been created in the local repository.
153 Passed the ID of the newly created changeset in environment 157 ID of the newly created changeset is in $HG_NODE. Parent
154 variable $NODE. 158 changeset IDs are in $HG_PARENT1 and $HG_PARENT2.
155 incoming;; 159 incoming;;
156 Run after a changeset has been pulled, pushed, or unbundled into 160 Run after a changeset has been pulled, pushed, or unbundled into
157 the local repository. Passed the ID of the newly arrived 161 the local repository. The ID of the newly arrived changeset is in
158 changeset in environment variable $NODE. 162 $HG_NODE.
163 outgoing;;
164 Run after sending changes from local repository to another. ID of
165 first changeset sent is in $HG_NODE. Source of operation is in
166 $HG_SOURCE; see "preoutgoing" hook for description.
167 prechangegroup;;
168 Run before a changegroup is added via push, pull or unbundle.
169 Exit status 0 allows the changegroup to proceed. Non-zero status
170 will cause the push, pull or unbundle to fail.
159 precommit;; 171 precommit;;
160 Run before starting a commit. Exit status 0 allows the commit to 172 Run before starting a local commit. Exit status 0 allows the
161 proceed. Non-zero status will cause the commit to fail. 173 commit to proceed. Non-zero status will cause the commit to fail.
174 Parent changeset IDs are in $HG_PARENT1 and $HG_PARENT2.
175 preoutgoing;;
176 Run before computing changes to send from the local repository to
177 another. Non-zero status will cause failure. This lets you
178 prevent pull over http or ssh. Also prevents against local pull,
179 push (outbound) or bundle commands, but not effective, since you
180 can just copy files instead then. Source of operation is in
181 $HG_SOURCE. If "serve", operation is happening on behalf of
182 remote ssh or http repository. If "push", "pull" or "bundle",
183 operation is happening on behalf of repository on same system.
184 pretag;;
185 Run before creating a tag. Exit status 0 allows the tag to be
186 created. Non-zero status will cause the tag to fail. ID of
187 changeset to tag is in $HG_NODE. Name of tag is in $HG_TAG. Tag
188 is local if $HG_LOCAL=1, in repo if $HG_LOCAL=0.
189 pretxnchangegroup;;
190 Run after a changegroup has been added via push, pull or unbundle,
191 but before the transaction has been committed. Changegroup is
192 visible to hook program. This lets you validate incoming changes
193 before accepting them. Passed the ID of the first new changeset
194 in $HG_NODE. Exit status 0 allows the transaction to commit.
195 Non-zero status will cause the transaction to be rolled back and
196 the push, pull or unbundle will fail.
197 pretxncommit;;
198 Run after a changeset has been created but the transaction not yet
199 committed. Changeset is visible to hook program. This lets you
200 validate commit message and changes. Exit status 0 allows the
201 commit to proceed. Non-zero status will cause the transaction to
202 be rolled back. ID of changeset is in $HG_NODE. Parent changeset
203 IDs are in $HG_PARENT1 and $HG_PARENT2.
204 tag;;
205 Run after a tag is created. ID of tagged changeset is in
206 $HG_NODE. Name of tag is in $HG_TAG. Tag is local if
207 $HG_LOCAL=1, in repo if $HG_LOCAL=0.
208
209 In earlier releases, the names of hook environment variables did not
210 have a "HG_" prefix. These unprefixed names are still provided in
211 the environment for backwards compatibility, but their use is
212 deprecated, and they will be removed in a future release.
162 213
163 http_proxy:: 214 http_proxy::
164 Used to access web-based Mercurial repositories through a HTTP 215 Used to access web-based Mercurial repositories through a HTTP
165 proxy. 216 proxy.
166 host;; 217 host;;