doc/hgrc.5.txt
changeset 14102 7f45b1911893
parent 13966 a1c31c64bcd3
child 14160 a881a058823c
equal deleted inserted replaced
14101:0c5228836fcd 14102:7f45b1911893
   632   will come is in ``$HG_URL``.
   632   will come is in ``$HG_URL``.
   633 ``precommit``
   633 ``precommit``
   634   Run before starting a local commit. Exit status 0 allows the
   634   Run before starting a local commit. Exit status 0 allows the
   635   commit to proceed. Non-zero status will cause the commit to fail.
   635   commit to proceed. Non-zero status will cause the commit to fail.
   636   Parent changeset IDs are in ``$HG_PARENT1`` and ``$HG_PARENT2``.
   636   Parent changeset IDs are in ``$HG_PARENT1`` and ``$HG_PARENT2``.
       
   637 ``prelistkeys``
       
   638   Run before listing pushkeys (like bookmarks) in the
       
   639   repository. Non-zero status will cause failure. The key namespace is
       
   640   in ``$HG_NAMESPACE``.
   637 ``preoutgoing``
   641 ``preoutgoing``
   638   Run before collecting changes to send from the local repository to
   642   Run before collecting changes to send from the local repository to
   639   another. Non-zero status will cause failure. This lets you prevent
   643   another. Non-zero status will cause failure. This lets you prevent
   640   pull over HTTP or SSH. Also prevents against local pull, push
   644   pull over HTTP or SSH. Also prevents against local pull, push
   641   (outbound) or bundle commands, but not effective, since you can
   645   (outbound) or bundle commands, but not effective, since you can
   642   just copy files instead then. Source of operation is in
   646   just copy files instead then. Source of operation is in
   643   ``$HG_SOURCE``. If "serve", operation is happening on behalf of remote
   647   ``$HG_SOURCE``. If "serve", operation is happening on behalf of remote
   644   SSH or HTTP repository. If "push", "pull" or "bundle", operation
   648   SSH or HTTP repository. If "push", "pull" or "bundle", operation
   645   is happening on behalf of repository on same system.
   649   is happening on behalf of repository on same system.
       
   650 ``prepushkey``
       
   651   Run before a pushkey (like a bookmark) is added to the
       
   652   repository. Non-zero status will cause the key to be rejected. The
       
   653   key namespace is in ``$HG_NAMESPACE``, the key is in ``$HG_KEY``,
       
   654   the old value (if any) is in ``$HG_OLD``, and the new value is in
       
   655   ``$HG_NEW``.
   646 ``pretag``
   656 ``pretag``
   647   Run before creating a tag. Exit status 0 allows the tag to be
   657   Run before creating a tag. Exit status 0 allows the tag to be
   648   created. Non-zero status will cause the tag to fail. ID of
   658   created. Non-zero status will cause the tag to fail. ID of
   649   changeset to tag is in ``$HG_NODE``. Name of tag is in ``$HG_TAG``. Tag is
   659   changeset to tag is in ``$HG_NODE``. Name of tag is in ``$HG_TAG``. Tag is
   650   local if ``$HG_LOCAL=1``, in repository if ``$HG_LOCAL=0``.
   660   local if ``$HG_LOCAL=1``, in repository if ``$HG_LOCAL=0``.
   667 ``preupdate``
   677 ``preupdate``
   668   Run before updating the working directory. Exit status 0 allows
   678   Run before updating the working directory. Exit status 0 allows
   669   the update to proceed. Non-zero status will prevent the update.
   679   the update to proceed. Non-zero status will prevent the update.
   670   Changeset ID of first new parent is in ``$HG_PARENT1``. If merge, ID
   680   Changeset ID of first new parent is in ``$HG_PARENT1``. If merge, ID
   671   of second new parent is in ``$HG_PARENT2``.
   681   of second new parent is in ``$HG_PARENT2``.
       
   682 ``listkeys``
       
   683   Run after listing pushkeys (like bookmarks) in the repository. The
       
   684   key namespace is in ``$HG_NAMESPACE``. ``$HG_VALUES`` is a
       
   685   dictionary containing the keys and values.
       
   686 ``pushkey``
       
   687   Run after a pushkey (like a bookmark) is added to the
       
   688   repository. The key namespace is in ``$HG_NAMESPACE``, the key is in
       
   689   ``$HG_KEY``, the old value (if any) is in ``$HG_OLD``, and the new
       
   690   value is in ``$HG_NEW``.
   672 ``tag``
   691 ``tag``
   673   Run after a tag is created. ID of tagged changeset is in ``$HG_NODE``.
   692   Run after a tag is created. ID of tagged changeset is in ``$HG_NODE``.
   674   Name of tag is in ``$HG_TAG``. Tag is local if ``$HG_LOCAL=1``, in
   693   Name of tag is in ``$HG_TAG``. Tag is local if ``$HG_LOCAL=1``, in
   675   repository if ``$HG_LOCAL=0``.
   694   repository if ``$HG_LOCAL=0``.
   676 ``update``
   695 ``update``