Mercurial > public > mercurial-scm > hg-stable
comparison 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 |
comparison
equal
deleted
inserted
replaced
7917:5a5396f49420 | 7918:62f11ef0df5b |
---|---|
1 ''' | 1 ''' |
2 These are examples of useful hooks in Python for Mercurial. | 2 Examples of useful python hooks for Mercurial. |
3 ''' | 3 ''' |
4 | |
5 from mercurial import patch, util | 4 from mercurial import patch, util |
6 | 5 |
7 | |
8 def diffstat(ui, repo, **kwargs): | 6 def diffstat(ui, repo, **kwargs): |
9 '''Use it like: | 7 '''Example usage: |
10 | 8 |
11 [hooks] | 9 [hooks] |
12 commit.diffstat = python:/path/to/this/file.py:diffstat | 10 commit.diffstat = python:/path/to/this/file.py:diffstat |
13 changegroup.diffstat = python:/path/to/this/file.py:diffstat | 11 changegroup.diffstat = python:/path/to/this/file.py:diffstat |
14 ''' | 12 ''' |