Differences between revisions 1 and 5 (spanning 4 versions)
Revision 1 as of 2009-09-08 15:43:46
Size: 1394
Editor: fero14041
Comment: Creation, thanks to Marcus Lindblom for Trac 0.12 MultiRepos informations.
Revision 5 as of 2012-11-06 12:58:09
Size: 1586
Editor: abuehl
Comment: remove link to deleted page "clone"
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/
Line 19: Line 19:
Get hook by [[Clone | cloning]] repository: Get hook by cloning repository:
Line 35: Line 35:
''Nota bene: '' if there are other changegroup hooks, ''[[Hook | just add a suffix to [each] ]]'', like: {{{changegroup.trac = python:trachook.hook}}}.
Line 40: Line 42:
 so this hook could not be necessary for future versions.  so this hook could not be necessary for future versions (Marcus Lindblom).
Line 42: Line 44:
----
CategoryExtensionsByOthers

HgTracHook

This hook is not distributed with Mercurial.

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

Repository: 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

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.


CategoryExtensionsByOthers

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