Edgewall Software

Changes between Version 16 and Version 17 of TracRepositoryAdmin


Ignore:
Timestamp:
Jun 15, 2011, 9:50:03 AM (13 years ago)
Author:
Remy Blank
Comment:

Added a section about hooks on Mercurial.

Legend:

Unmodified
Added
Removed
Modified
  • TracRepositoryAdmin

    v16 v17  
    129129}}}
    130130
     131For Mercurial, add the following entries to the `.hgrc` file of each repository accessed by Trac (replacing `<my-repository>` with the name of the repository in Trac):
     132{{{
     133[hooks]
     134commit = trac-admin /path/to/env changeset added <my-repository> $HG_NODE
     135changegroup = hg log -r $HG_NODE: --template "{node} " | xargs trac-admin /path/to/env changeset added <my-repository>
     136}}}
     137
    131138The Unix variants above assume that the user running the Subversion commit has write access to the Trac environment, which is the case in the standard configuration where both the repository and Trac are served by the web server. If you access the repository through another means, for example `svn+ssh://`, you may have to run `trac-admin` with different privileges, for example by using `sudo`.
    132139