+--- a/contrib/trac-svn-hook (revision 9872)
++++ b/contrib/trac-svn-hook (working copy)
+ # We also want to notify two Trac instances:
+-# export TRAC_ENV=/srv/trac/the_trac_env:/srv/trac/trac_other_trac_env
+-# export PATH=/packages/trac/branches/trac-multirepos/bin:$PATH
++# We have a scenario where different repos need to sync different envs.
++# How about we set TRAC_ENV manually in post_commit when we need to
++# sync a special env, end let the rest be handled with basename as default.
++if [[ -z "$TRAC_ENV" && -n "$1" ]]; then
++ export TRAC_ENV=/secure/trac/projekt/`basename $1`
+ # export LD_LIBRARY_PATH=/opt/python-2.4.4/lib:/opt/sqlite-3.3.8/lib:$LD_LIBRARY_PATH