Edgewall Software

Changes between Version 28 and Version 29 of TracRepositoryAdmin


Ignore:
Timestamp:
Apr 2, 2013, 1:26:24 AM (9 years ago)
Author:
Thijs Triemstra
Comment:

add sections for each scm in Explicit synchronization docs

Legend:

Unmodified
Added
Removed
Modified
  • TracRepositoryAdmin

    v28 v29  
    102102Note that you may have to set the environment variable PYTHON_EGG_CACHE to the same value as was used for the web server configuration before calling trac-admin, if you changed it from its default location. See [wiki:TracPlugins Trac Plugins] for more information.
    103103
     104==== Subversion ====
     105
    104106The following examples are complete post-commit and post-revprop-change scripts for Subversion. They should be edited for the specific environment, marked executable (where applicable) and placed in the `hooks` directory of each repository. On Unix (`post-commit`):
    105107{{{#!sh
     
    136138See the [http://svnbook.red-bean.com/en/1.5/svn.reposadmin.create.html#svn.reposadmin.create.hooks section about hooks] in the Subversion book for more information. Other repository types will require different hook setups.
    137139
     140==== Git ====
     141
    138142Git hooks can be used in the same way for explicit syncing of git repositories. Add the following to `.git/hooks/post-commit`:
    139143{{{#!sh
     
    141145trac-admin /path/to/env changeset added <my-repository> $REV
    142146}}}
     147
     148==== Mercurial ====
    143149
    144150For Mercurial, add the following entries to the `.hgrc` file of each repository accessed by Trac (if [trac:TracMercurial] is installed in a Trac `plugins` directory, download [trac:source:mercurial-plugin/tracext/hg/hooks.py hooks.py] and place it somewhere accessible):