doc/hgrc.5.txt
changeset 4715 ad45209a7c7a
parent 4709 53eca35c3aeb
child 4717 97369f6a6bb6
equal deleted inserted replaced
4714:a741293793f6 4715:ad45209a7c7a
   257     $HG_NODE.  URL that was source of changes came is in $HG_URL.
   257     $HG_NODE.  URL that was source of changes came is in $HG_URL.
   258   outgoing;;
   258   outgoing;;
   259     Run after sending changes from local repository to another.  ID of
   259     Run after sending changes from local repository to another.  ID of
   260     first changeset sent is in $HG_NODE.  Source of operation is in
   260     first changeset sent is in $HG_NODE.  Source of operation is in
   261     $HG_SOURCE; see "preoutgoing" hook for description.
   261     $HG_SOURCE; see "preoutgoing" hook for description.
       
   262   post-<command>;;
       
   263     Run after successful invocations of the associated command. The
       
   264     contents of the command line are passed as $HG_ARGS and the result
       
   265     code in $HG_RESULT. Hook failure is ignored.
       
   266   pre-<command>;;
       
   267     Run before executing the associated command. The contents of the
       
   268     command line are passed as $HG_ARGS. If the hook returns failure,
       
   269     the command doesn't execute and Mercurial returns the failure code.
   262   prechangegroup;;
   270   prechangegroup;;
   263     Run before a changegroup is added via push, pull or unbundle.
   271     Run before a changegroup is added via push, pull or unbundle.
   264     Exit status 0 allows the changegroup to proceed.  Non-zero status
   272     Exit status 0 allows the changegroup to proceed.  Non-zero status
   265     will cause the push, pull or unbundle to fail.  URL from which
   273     will cause the push, pull or unbundle to fail.  URL from which
   266     changes will come is in $HG_URL.
   274     changes will come is in $HG_URL.
   310   update;;
   318   update;;
   311     Run after updating the working directory.  Changeset ID of first
   319     Run after updating the working directory.  Changeset ID of first
   312     new parent is in $HG_PARENT1.  If merge, ID of second new parent
   320     new parent is in $HG_PARENT1.  If merge, ID of second new parent
   313     is in $HG_PARENT2.  If update succeeded, $HG_ERROR=0.  If update
   321     is in $HG_PARENT2.  If update succeeded, $HG_ERROR=0.  If update
   314     failed (e.g. because conflicts not resolved), $HG_ERROR=1.
   322     failed (e.g. because conflicts not resolved), $HG_ERROR=1.
   315   pre-<command>;;
       
   316     Run before executing the associated command. The contents of the
       
   317     command line are passed as $HG_ARGS. If the hook returns failure,
       
   318     the command doesn't execute and Mercurial returns the failure code.
       
   319   post-<command>;;
       
   320     Run after successful invocations of the associated command. The
       
   321     contents of the command line are passed as $HG_ARGS and the result
       
   322     code in $HG_RESULT. Hook failure is ignored.
       
   323 
   323 
   324   Note: it is generally better to use standard hooks rather than the
   324   Note: it is generally better to use standard hooks rather than the
   325   generic pre- and post- command hooks as they are guaranteed to be
   325   generic pre- and post- command hooks as they are guaranteed to be
   326   called in the appropriate contexts for influencing transactions.
   326   called in the appropriate contexts for influencing transactions.
   327   Also, hooks like "commit" will be called in all contexts that
   327   Also, hooks like "commit" will be called in all contexts that
   440     format, see the hgignore(5) man page.
   440     format, see the hgignore(5) man page.
   441   interactive;;
   441   interactive;;
   442     Allow to prompt the user.  True or False.  Default is True.
   442     Allow to prompt the user.  True or False.  Default is True.
   443   logtemplate;;
   443   logtemplate;;
   444     Template string for commands that print changesets.
   444     Template string for commands that print changesets.
   445   style;;
       
   446     Name of style to use for command output.
       
   447   merge;;
   445   merge;;
   448     The conflict resolution program to use during a manual merge.
   446     The conflict resolution program to use during a manual merge.
   449     Default is "hgmerge".
   447     Default is "hgmerge".
   450   patch;;
   448   patch;;
   451     command to use to apply patches. Look for 'gpatch' or 'patch' in PATH if
   449     command to use to apply patches. Look for 'gpatch' or 'patch' in PATH if
   462   ssh;;
   460   ssh;;
   463     command to use for SSH connections. Default is 'ssh'.
   461     command to use for SSH connections. Default is 'ssh'.
   464   strict;;
   462   strict;;
   465     Require exact command names, instead of allowing unambiguous
   463     Require exact command names, instead of allowing unambiguous
   466     abbreviations.  True or False.  Default is False.
   464     abbreviations.  True or False.  Default is False.
       
   465   style;;
       
   466     Name of style to use for command output.
   467   timeout;;
   467   timeout;;
   468     The timeout used when a lock is held (in seconds), a negative value
   468     The timeout used when a lock is held (in seconds), a negative value
   469     means no timeout. Default is 600.
   469     means no timeout. Default is 600.
   470   username;;
   470   username;;
   471     The committer of a changeset created when running "commit".
   471     The committer of a changeset created when running "commit".
   521     whitespace or ",") is also denied.  The contents of the deny_push
   521     whitespace or ",") is also denied.  The contents of the deny_push
   522     list are examined before the allow_push list.
   522     list are examined before the allow_push list.
   523   description;;
   523   description;;
   524     Textual description of the repository's purpose or contents.
   524     Textual description of the repository's purpose or contents.
   525     Default is "unknown".
   525     Default is "unknown".
       
   526   encoding;;
       
   527     Character encoding name.
       
   528     Example: "UTF-8"
   526   errorlog;;
   529   errorlog;;
   527     Where to output the error log. Default is stderr.
   530     Where to output the error log. Default is stderr.
   528   hidden;;
   531   hidden;;
   529     Whether to hide the repository in the hgwebdir index. Default is false.
   532     Whether to hide the repository in the hgwebdir index. Default is false.
   530   ipv6;;
   533   ipv6;;
   551     Default is 1; set to 0 to disable.
   554     Default is 1; set to 0 to disable.
   552   style;;
   555   style;;
   553     Which template map style to use.
   556     Which template map style to use.
   554   templates;;
   557   templates;;
   555     Where to find the HTML templates. Default is install path.
   558     Where to find the HTML templates. Default is install path.
   556   encoding;;
       
   557     Character encoding name.
       
   558     Example: "UTF-8"
       
   559 
   559 
   560 
   560 
   561 AUTHOR
   561 AUTHOR
   562 ------
   562 ------
   563 Bryan O'Sullivan <bos@serpentine.com>.
   563 Bryan O'Sullivan <bos@serpentine.com>.