Edgewall Software

Changes between Version 76 and Version 77 of TracMercurial


Ignore:
Timestamp:
Nov 10, 2010, 8:32:35 PM (11 years ago)
Author:
kamil@…
Comment:

Documented hook functionality

Legend:

Unmodified
Added
Removed
Modified
  • TracMercurial

    v76 v77  
    240240}}}
    241241
     242=== Setting up post-commit hooks ===
     243For [milestone:0.12] and later:
     244
     245If you want to enable post-commit hook functionality on your repository, add the following to your repository's `.hg/hgrc` file:
     246{{{
     247[hooks]
     248commit = trac-admin /path/to/env changeset added repo_name $HG_NODE
     249changegroup = hg log -r $HG_NODE: --template "{node} " | xargs trac-admin /path/to/env changeset added repo_name
     250}}}
     251
     252Remember to change `/path/to/env` and `repo_name` on ''both'' lines to reflect your environment.
     253
     254You must also enable the CommitTicketUpdater functionality in your `trac.ini` by adding
     255
     256{{{
     257tracopt.ticket.commit_updater.* = enabled
     258}}}
     259
     260to the `[components]` section.
    242261
    243262== Features ==