annotate scripts/notify-roundup/git/post-commit @ 4206:bc479a7ea540
gsoc-2009
Implemented provisional bzr postcommit hook
| author |
Pygi <pygi@users.sourceforge.net> |
| date |
Mon, 13 Jul 2009 18:24:27 +0000 |
| parents |
1c3380e5590a |
| children |
|
| rev |
line source |
|
4205
|
1 #!/bin/sh
|
|
|
2 #
|
|
|
3 # An example hook script that is called after a successful
|
|
|
4 # commit is made.
|
|
|
5 #
|
|
|
6 # It is used for Roundup notification after a commit.
|
|
|
7
|
|
|
8 PYTHON=/usr/bin/python
|
|
|
9 NOTIFY=/path/to/your/notify-roundup.py
|
|
|
10 CONFIG=/path/to/your/notify-roundup.ini
|
|
|
11 REPOS=`/bin/pwd`
|
|
|
12 REV="cd `/bin/pwd` ; /usr/bin/git log --pretty=format:%h | head -n1 "
|
|
|
13 PYTHONPATH=/path/to/your/roundup/instance "$PYTHON" "$NOTIFY" "$CONFIG" "$REPOS" "$REV"
|
|
|
14
|
|
|
15 : Nothing
|