author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
Mon, 30 Mar 2009 01:21:39 +0200 | |
changeset 7918 | 62f11ef0df5b |
parent 7917 | 5a5396f49420 |
child 7920 | 9ea05fbfa7ab |
--- 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