Edgewall Software

Opened 7 years ago

Last modified 13 months ago

#12771 closed enhancement

Simplify configuration of trac-svn-hook — at Version 1

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Milestone: 1.3.3
Component: version control Version:
Severity: normal Keywords: svn trac-svn-hook
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Ryan J Ollos)

Proposed is a minor change, untested so far, to make it easier to configure trac-svn-hook without edit the file, using hook script environment configuration.

See TracRepositoryAdmin@45.

  • contrib/trac-svn-hook

    diff --git a/contrib/trac-svn-hook b/contrib/trac-svn-hook
    index 7a1416088..291f88444 100755
    a b  
    4545#         /path/to/trac-svn-hook $REPOS $REV $USER $PROPNAME
    4646#     fi
    4747#
    48 # See also http://svnbook.red-bean.com/en/1.5/svn.reposadmin.create.html#svn.reposadmin.create.hooks
     48# See also http://svnbook.red-bean.com/en/1.7/svn.reposadmin.create.html#svn.reposadmin.create.hooks
    4949#
    5050#  Platform:: Unix or Cygwin.
    5151#
     
    6060#
    6161# == Configuration
    6262#
    63 # Uncomment and adapt to your local setup:
     63# Uncomment and adapt to your local setup. In Subversion 1.8 and later, you
     64# can set these variables in a hook script environment configuration rather
     65# than editing this file.
    6466#
    65 # export TRAC_ENV=/path/to/trac-env:/path/to/another/trac-env
    66 # export PATH=/path/to/python/bin:$PATH
    67 # export LD_LIBRARY_PATH=/path/to/python/lib:$LD_LIBRARY_PATH
     67# See also http://svnbook.red-bean.com/en/1.8/svn.reposadmin.create.html#svn.reposadmin.hooks.configuration
     68#
     69# TRAC_ENV=/path/to/trac-env:/path/to/another/trac-env
     70# PYTHON_BIN=/path/to/python/bin
     71# PYTHON_LIB=/path/to/python/lib
    6872#
    6973# -----------------------------------------------------------------------------
    7074#
     
    171175#
    172176# This is the script itself, you shouldn't need to modify this part.
    173177
     178export PATH=$PYTHON_BIN:$PATH
     179export LD_LIBRARY_PATH=$PYTHON_LIB:$LD_LIBRARY_PATH
     180
    174181# -- Command line arguments (cf. usage)
    175182
    176183REPOS="$1"

Change History (1)

comment:1 by Ryan J Ollos, 7 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.