equal
deleted
inserted
replaced
473 set to an empty value under Unix-like systems. |
473 set to an empty value under Unix-like systems. |
474 |
474 |
475 The syntax for Python hooks is as follows: |
475 The syntax for Python hooks is as follows: |
476 |
476 |
477 hookname = python:modulename.submodule.callable |
477 hookname = python:modulename.submodule.callable |
|
478 hookname = python:/path/to/python/module.py:callable |
478 |
479 |
479 Python hooks are run within the Mercurial process. Each hook is |
480 Python hooks are run within the Mercurial process. Each hook is |
480 called with at least three keyword arguments: a ui object (keyword |
481 called with at least three keyword arguments: a ui object (keyword |
481 "ui"), a repository object (keyword "repo"), and a "hooktype" |
482 "ui"), a repository object (keyword "repo"), and a "hooktype" |
482 keyword that tells what kind of hook is used. Arguments listed as |
483 keyword that tells what kind of hook is used. Arguments listed as |