TwitVN lets you publish your SVN commits to a twitter feed and include a trac link with it.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Twitter Setup

You need to set up your own Twitter app for this script to work.

    Go to this site:
    Set up an app, and then enter the consumer secret/consumer key into and 


You will need to install tweepy (and simpleJSON if you have python 2.5, it's included with 2.6)

    easy_install simplejson (python 2.5 only)
    easy_install tweepy
    For GIT: easy_install gitpython 


    Make a TwitVN folder in the SVN or GIT hooks folder
    Put (or and into the TwitVN folder
    For SVN:
        Add the following line to post-commit in the SVN hooks folder (trac is optional)

        python /path/to/svn/repo/hooks/TwitVN/ -f "${REPOS}" -r "${REV}" -t "<url for trac>"

    For GIT:
        Add the following line to update in the GIT hooks folder

        echo "-o ${2} -n ${3}" > twitvn.tmp

        Add the following line to post-update in the GIT hooks folder

        DIR=$(cd `dirname $0` && pwd)
        PARENT=`dirname $DIR`
        python "${PARENT}"/hooks/twitvn/ -f "${PARENT}" `cat twitvn.tmp`
        rm twitvn.tmp

OAuth Setup

In order for TwitVN to post to Twitter it must be authorized to your account. To do this follow the instructions below.

    Go into the TwitVN folder, and launch the script


    The script will print a URL, copy and paste that into your browser
    Login to twitter, and authorize the TwitVN app
    Enter the PIN number given in the browser into the python script
    The python script will print out an Access Key and an Access Secret
    Copy these 2 keys into the script: