Mercurial > hg-stable
diff contrib/python-hook-examples.py @ 7918:62f11ef0df5b
Change wording in example hook
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Mon, 30 Mar 2009 01:21:39 +0200 |
parents | 5a5396f49420 |
children | a8d13ee0ce68 |
line wrap: on
line diff
--- a/contrib/python-hook-examples.py Thu Mar 26 16:49:47 2009 +0200 +++ b/contrib/python-hook-examples.py Mon Mar 30 01:21:39 2009 +0200 @@ -1,12 +1,10 @@ ''' -These are examples of useful hooks in Python for Mercurial. +Examples of useful python hooks for Mercurial. ''' - from mercurial import patch, util - def diffstat(ui, repo, **kwargs): - '''Use it like: + '''Example usage: [hooks] commit.diffstat = python:/path/to/this/file.py:diffstat