568 first changeset sent is in ``$HG_NODE``. Source of operation is in |
568 first changeset sent is in ``$HG_NODE``. Source of operation is in |
569 ``$HG_SOURCE``; see "preoutgoing" hook for description. |
569 ``$HG_SOURCE``; see "preoutgoing" hook for description. |
570 ``post-<command>`` |
570 ``post-<command>`` |
571 Run after successful invocations of the associated command. The |
571 Run after successful invocations of the associated command. The |
572 contents of the command line are passed as ``$HG_ARGS`` and the result |
572 contents of the command line are passed as ``$HG_ARGS`` and the result |
573 code in ``$HG_RESULT``. Hook failure is ignored. |
573 code in ``$HG_RESULT``. Parsed command line arguments are passed as |
|
574 ``$HG_PATS`` and ``$HG_OPTS``. These contain string representations of |
|
575 the python data internally passed to <command>. ``$HG_OPTS`` is a |
|
576 dictionary of options (with unspecified options set to their defaults). |
|
577 ``$HG_PATS`` is a list of arguments. Hook failure is ignored. |
574 ``pre-<command>`` |
578 ``pre-<command>`` |
575 Run before executing the associated command. The contents of the |
579 Run before executing the associated command. The contents of the |
576 command line are passed as ``$HG_ARGS``. If the hook returns failure, |
580 command line are passed as ``$HG_ARGS``. Parsed command line arguments |
577 the command doesn't execute and Mercurial returns the failure |
581 are passed as ``$HG_PATS`` and ``$HG_OPTS``. These contain string |
|
582 representations of the data internally passed to <command>. ``$HG_OPTS`` |
|
583 is a dictionary of options (with unspecified options set to their |
|
584 defaults). ``$HG_PATS`` is a list of arguments. If the hook returns |
|
585 failure, the command doesn't execute and Mercurial returns the failure |
578 code. |
586 code. |
579 ``prechangegroup`` |
587 ``prechangegroup`` |
580 Run before a changegroup is added via push, pull or unbundle. Exit |
588 Run before a changegroup is added via push, pull or unbundle. Exit |
581 status 0 allows the changegroup to proceed. Non-zero status will |
589 status 0 allows the changegroup to proceed. Non-zero status will |
582 cause the push, pull or unbundle to fail. URL from which changes |
590 cause the push, pull or unbundle to fail. URL from which changes |