Personal tools
Document Actions

Tux congratulates you upon subversion commit !

Up to Scripts

Tux congratulates you upon subversion commit !

Posted by Antoine Brenner at May 13. 2007

Hello !




Here is version 0.1 of tuxdroid-enjoy-the-commit.py



Tuxdroid congratulates you upon each commit done with subversion ...

Call this script in the "post-commit" hook of your subversion repository's hook directory like this:
python /path/to/tuxdroid-enjoy-the-commit.py --repository "$REPOS" --revision "$REV"
#See this URL for more background information on subversion hooks
http://svnbook.red-bean.com/nightly/en/svn.reposadmin.create.html#svn.reposadmin.create.hooks

Example post-commit file:
------BEGIN-------------
#!/bin/sh
# POST-COMMIT HOOK
REPOS="$1"
REV="$2"
python /path/to/tuxdroid-enjoy-the-commit.py --repository "$REPOS" --revision "$REV"
-------END--------------


Notes:
1) tuxdroid-enjoy-the-commit.py uses 'svnlook' to query the log message in the repository, so svnlook must be installed. It is expected to found in SVNLOOK (see code below).
2) tuxdroid-enjoy-the-commit.py uses the tuxttsdaemon and the voice_us_male (my commit logs are in English...). Make sure that they are installed and that tuxttsdaemon is running



Attachments

Re: Tux congratulates you upon subversion commit !

Posted by Martin Thomas at May 14. 2007

Do we have subversion commit privs?


Cool script, btw.


Re: Tux congratulates you upon subversion commit !

Posted by Antoine Brenner at May 14. 2007

Hello,




Previously Martin Thomas wrote:



Do we have subversion commit privs?



You have to administer the subversion repository to use this script. If the question was related to commit privileges on the tuxisalive repository, I have no idea...





Cool script, btw.



Thanks :)
We will soon put it in production in our company (http://www.gymglish.com), this will be great fun ! (I'll post some pictures when 'commit-tux' will be in production).

A++
Antoine



Powered by Ploneboard
You are here: Home Forum Scripts Tux congratulates you upon subversion commit !

Powered by Plone CMS, the Open Source Content Management System