[PATCH] diffstat hook example

timeless timeless at gmail.com
Fri Mar 27 04:48:39 CDT 2009


On Fri, Mar 27, 2009 at 12:52 AM, Alexander Solovyov
<piranha at piranha.org.ua> wrote:
> +++ b/contrib/python-hook-examples.py
> @@ -0,0 +1,27 @@
> +'''
> +This is examples of useful hooks in Python for Mercurial.

These are examples of ...

> +To use them, put file containing hooks somewhere in the Python path and edit

put _a_ file ...

> +your hg config to use them.

> +def diffstat(ui, repo, **kwargs):
> +    '''Use it like:

I'm not a fan of "Use it like", but I don't have a suggestion offhand



More information about the Mercurial-devel mailing list