Mercurial > hg
comparison doc/hgrc.5.txt @ 1736:50de0887bbcd
add preoutgoing and outgoing hooks.
preoutgoing lets prevent pull over http or ssh.
outgoing lets notify after pull.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Fri, 17 Feb 2006 08:26:21 -0800 |
parents | 9488d53233b5 |
children | e431344e604c |
comparison
equal
deleted
inserted
replaced
1735:791405fe9991 | 1736:50de0887bbcd |
---|---|
158 changeset IDs are in $HG_PARENT1 and $HG_PARENT2. | 158 changeset IDs are in $HG_PARENT1 and $HG_PARENT2. |
159 incoming;; | 159 incoming;; |
160 Run after a changeset has been pulled, pushed, or unbundled into | 160 Run after a changeset has been pulled, pushed, or unbundled into |
161 the local repository. The ID of the newly arrived changeset is in | 161 the local repository. The ID of the newly arrived changeset is in |
162 $HG_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. | |
163 prechangegroup;; | 167 prechangegroup;; |
164 Run before a changegroup is added via push, pull or unbundle. | 168 Run before a changegroup is added via push, pull or unbundle. |
165 Exit status 0 allows the changegroup to proceed. Non-zero status | 169 Exit status 0 allows the changegroup to proceed. Non-zero status |
166 will cause the push, pull or unbundle to fail. | 170 will cause the push, pull or unbundle to fail. |
167 precommit;; | 171 precommit;; |
168 Run before starting a local commit. Exit status 0 allows the | 172 Run before starting a local commit. Exit status 0 allows the |
169 commit to proceed. Non-zero status will cause the commit to fail. | 173 commit to proceed. Non-zero status will cause the commit to fail. |
170 Parent changeset IDs are in $HG_PARENT1 and $HG_PARENT2. | 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. | |
171 pretag;; | 184 pretag;; |
172 Run before creating a tag. Exit status 0 allows the tag to be | 185 Run before creating a tag. Exit status 0 allows the tag to be |
173 created. Non-zero status will cause the tag to fail. ID of | 186 created. Non-zero status will cause the tag to fail. ID of |
174 changeset to tag is in $HG_NODE. Name of tag is in $HG_TAG. Tag | 187 changeset to tag is in $HG_NODE. Name of tag is in $HG_TAG. Tag |
175 is local if $HG_LOCAL=1, in repo if $HG_LOCAL=0. | 188 is local if $HG_LOCAL=1, in repo if $HG_LOCAL=0. |