doc/hgrc.5.txt
changeset 2266 3f7692b0ff13
parent 2211 b8b7a79a4d88
child 2277 066d0055e430
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.