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 )
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.
-
contrib/trac-svn-hook
diff --git a/contrib/trac-svn-hook b/contrib/trac-svn-hook index 7a1416088..291f88444 100755
a b 45 45 # /path/to/trac-svn-hook $REPOS $REV $USER $PROPNAME 46 46 # fi 47 47 # 48 # See also http://svnbook.red-bean.com/en/1. 5/svn.reposadmin.create.html#svn.reposadmin.create.hooks48 # See also http://svnbook.red-bean.com/en/1.7/svn.reposadmin.create.html#svn.reposadmin.create.hooks 49 49 # 50 50 # Platform:: Unix or Cygwin. 51 51 # … … 60 60 # 61 61 # == Configuration 62 62 # 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. 64 66 # 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 68 72 # 69 73 # ----------------------------------------------------------------------------- 70 74 # … … 171 175 # 172 176 # This is the script itself, you shouldn't need to modify this part. 173 177 178 export PATH=$PYTHON_BIN:$PATH 179 export LD_LIBRARY_PATH=$PYTHON_LIB:$LD_LIBRARY_PATH 180 174 181 # -- Command line arguments (cf. usage) 175 182 176 183 REPOS="$1"
Note:
See TracTickets
for help on using tickets.