Differences between revisions 3 and 4
Revision 3 as of 2010-10-19 16:31:34
Size: 1601
Editor: fero14041
Comment: Add category "ExtensionsByOthers"
Revision 4 as of 2012-02-15 22:12:22
Size: 1598
Editor: ks3095497
Comment: Download location is a repository.
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
Download site: http://bitbucket.org/madssj/mercurial-trac-hook/ Repository: http://bitbucket.org/madssj/mercurial-trac-hook/


This hook is not distributed with Mercurial.

Authors: Mads Sülau Jørgensen, Marcus Lindblom

Repository: http://bitbucket.org/madssj/mercurial-trac-hook/


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.


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:

changegroup = python:trachook.hook

root = /path/to/trac
url = http://url/to/trac

Nota bene: if there are other changegroup hooks, just add a suffix to [each], like: changegroup.trac = python:trachook.hook.

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 (Marcus Lindblom).

  • This hook is partially similar to HgTracExtension.


HgTracHook (last edited 2012-11-06 12:58:09 by abuehl)