hg .hgrc example: [hooks] # commit is good for local repositories commit.vcslog2mysql=vcslog2mysql -t hg # incoming is good for remote repositories #incoming.vcslog2mysql=vcslog2mysql -t hg svn post-commit example: REPOS="$1" REV="$2" vcslog2mysql -t svn -r file://$REPOS -i $REV # if you have a project that has multiple repositories under it, you can # keep track of the project like this (for hg): # if the project base is: /path/to/repo/root/PROJECT # with repositories like this: # /path/to/repo/root/PROJECT/repo1 # /path/to/repo/root/PROJECT/repo2 # you hook would look like this to find PROJECT as the project name: [hooks] # incoming is good for remote repositories incoming.vcslog2mysql=vcslog2mysql -t hg --project-prefix /path/to/repo/root