Changeset 68

Show
Ignore:
Timestamp:
2009年02月24日 16时01分42秒 (3 years ago)
Author:
jiangx
Message:

Fixed #17: call trac-post-commit-hook if this hook is enabled.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pysvnmanager/hooks/init/hook1.5/post-commit

    r59 r68  
    5353readconf post_commit 
    5454readconf email  
     55readconf trac 
    5556 
    5657## Sync with downstream mirror sites using svnsync 
     
    6869 
    6970############################################################ 
    70 # 
    71 # Mantisbt integration ( http://www.worldhello.net ) 
    72 # 
     71# Trac post commit hook 
     72TRAC_POST_COMMIT_HOOK=/usr/share/doc/trac/contrib/trac-post-commit-hook 
     73if [ "$trac_post_commit_enabled" = "yes" ]; then 
     74    if [ ! -z "$trac_env" ]; then 
     75        if [ -z "$trac_repos_name" ]; then 
     76            traccmd="$TRAC_POST_COMMIT_HOOK -p $trac_env -r $REV" 
     77        else 
     78            traccmd="$TRAC_POST_COMMIT_HOOK -p $trac_env -r $REV -R $trac_repos_name" 
     79        fi 
     80        eval $traccmd 
     81    fi  
     82fi 
     83 
    7384############################################################ 
     85# Mantisbt integration 
    7486if [ "$mantis_integration" = "yes" ]; then 
    7587    SVNLOOK=/opt/svn/bin/svnlook