Edgewall Software

Changes between Version 6 and Version 7 of TracRepositoryAdmin


Ignore:
Timestamp:
Jul 14, 2010, 11:07:33 PM (14 years ago)
Author:
dmcr@…
Comment:

Updated page to encourage use of PYTHON_EGG_CACHE in post-commit and post-revprop-change hook files.

Legend:

Unmodified
Added
Removed
Modified
  • TracRepositoryAdmin

    v6 v7  
    9999The `<repos>` argument can be either a repository name (use "`(default)`" for the default repository) or the path to the repository.
    100100
     101Note 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.
     102
    101103The 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`):
    102104{{{
    103105#!sh
    104106#!/bin/sh
     107export PYTHON_EGG_CACHE="/path/to/dir"
    105108/usr/bin/trac-admin /path/to/env changeset added "$1" "$2"
    106109}}}
     
    115118#!sh
    116119#!/bin/sh
     120export PYTHON_EGG_CACHE="/path/to/dir"
    117121/usr/bin/trac-admin /path/to/env changeset modified "$1" "$2"
    118122}}}