HgTracHook
This hook is not distributed with Mercurial.
Authors: Mads Sülau Jørgensen, Marcus Lindblom
Download site: http://bitbucket.org/madssj/mercurial-trac-hook/
Overview
This post-commit hook for Trac is inspired by Subversion's one, and was originally proposed by Mads Sülau Jørgensen on it's blog. It is suitable for Trac's releases prior to 0.12.
Configuration
Get hook by cloning repository:
hg clone http://bitbucket.org/madssj/mercurial-trac-hook/
and install the 'trachook.py' module somewhere inside your PYTHONPATH.
Then configure your .hgrc to enable the hook by adding the following lines:
[hooks] changegroup = python:trachook.hook [trac-hook] root = /path/to/trac url = http://url/to/trac
Other considerations
Trac's authors are working on integrating Mercurial into Core with 0.12 (MultiRepos), so this hook could not be necessary for future versions.
This hook is partially similar to HgTracExtension.