Changeset 57

Show
Ignore:
Timestamp:
2008年09月26日 22时54分16秒 (4 years ago)
Author:
jiangx
Message:

Fix #11: Enhanced mantis/subversion integration. contribute by Jiang Zongwen.

Location:
trunk
Files:
3 added
2 modified

Legend:

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

    r47 r57  
    8383      commitauthor=`$SVNLOOK  author  -r "$REV" "$REPOS" | $SED -e 's/\$/\\\\n/g'` 
    8484      commitdiff=`$SVNLOOK diff -r "$REV" "$REPOS" | head -25 | $SED -e 's/\$/\\\\n/g'` 
    85       echo -e "Author: $commitauthor\nCommit Log:\n$commitlog\n\n****** Source code change ******\nRepository: $REPOS, Revision: $REV.\n\n$commitdiff" | $PHP -q $MANTISBT/core/checkin.php 
     85      $PHP -q $MANTISBT/core/checkin.php $commitauthor << EOF 
     86Author: $commitauthor 
     87Commit Log: 
     88$commitlog 
     89 
     90****** Source code change ****** 
     91Repository: $REPOS, Revision: $REV. 
     92 
     93$commitdiff 
     94EOF 
    8695    fi 
    8796fi 
  • trunk/pysvnmanager/hooks/init/hook1.5/post-commit

    r47 r57  
    8383      commitauthor=`$SVNLOOK  author  -r "$REV" "$REPOS" | $SED -e 's/\$/\\\\n/g'` 
    8484      commitdiff=`$SVNLOOK diff -r "$REV" "$REPOS" | head -25 | $SED -e 's/\$/\\\\n/g'` 
    85       echo -e "Author: $commitauthor\nCommit Log:\n$commitlog\n\n****** Source code change ******\nRepository: $REPOS, Revision: $REV.\n\n$commitdiff" | $PHP -q $MANTISBT/core/checkin.php 
     85      $PHP -q $MANTISBT/core/checkin.php $commitauthor << EOF 
     86Author: $commitauthor 
     87Commit Log: 
     88$commitlog 
     89 
     90****** Source code change ****** 
     91Repository: $REPOS, Revision: $REV. 
     92 
     93$commitdiff 
     94EOF 
    8695    fi 
    8796fi