Discussions  >  CollabNet Subversion Admins  >  RE: Re: Create or modify hook script to send generic message ?

Back to topic list

RE: Re: Create or modify hook script to send generic message ?

Author phil_pinkerton (OCN Member)
Full name Phil Pinkerton
Date 2012-03-22 13:25:01 PDT
Message OK but meanwhile I got the hook script to work just fine.

for anyone that may be interested:

[code]
#
# Repository Specific hook script goes here
#

REPOS="$1"
REV="$2"
CMTBY=`svnlook author $REPOS`
COMP="@nationwide.com"
DATE=`svnlook date $REPOS`
COMMENTS=`svnlook log $REPOS`
FILES=`svnlook changed $REPOS`
NEWPATH="https://svntest.nwie.net/svn/"
REPNAME=`echo ${REPOS##*/}`
MSG="NOTICE: Subversion TEST Server svn01t.nwie.net is being replace March 31st 2012\n\n Please use the following New URL for your Test Repositories\n\n $NEWPATH$REPNAME\n\nCommitted By: $CMTBY\n
\nDate: $DATE\n\nModified Folder Path and Files: \n$FILES \n\nRevision #: $2\n\nComments: $COMMENTS"

echo $MSG | mailx -s "Subversion Commit message $CMTBY" $CMTBY$COMP
[/code]

Email looks like this:

NOTICE: Subversion TEST Server svn01t.nwie.net is being replace March 31st 2012

 Please use the following New URL for your Test Repositories

 https://svntest.nwie​.net/svn/Gandalf

Committed By: pinkerp1

Date: 2012-03-22 16:15:53 -0400 (Thu, 22 Mar 2012)

Modified Folder Path and Files:
U branches/svnprodRepoUse.txt

Revision #: 62

Comments: Post-Commit email and Notice working better now

« Previous message in topic | 8 of 8 | Next message in topic »

Messages

Show all messages in topic

Create or modify hook script to send generic message ? pcpinkerton (OCN Member) Phil Pinkerton 2012-03-21 04:05:43 PDT
     RE: Create or modify hook script to send generic message ? markphip (OCN Member) Mark Phippard 2012-03-21 04:41:12 PDT
     Re: Create or modify hook script to send generic message ? cmpilato (OCN Member) C. Michael Pilato 2012-03-21 09:16:16 PDT
         RE: Re: Create or modify hook script to send generic message ? phil_pinkerton (OCN Member) Phil Pinkerton 2012-03-22 08:26:42 PDT
             Re: Create or modify hook script to send generic message ? cmpilato (OCN Member) C. Michael Pilato 2012-03-22 09:05:24 PDT
                 RE: Re: Create or modify hook script to send generic message ? phil_pinkerton (OCN Member) Phil Pinkerton 2012-03-22 11:00:46 PDT
                     Re: Create or modify hook script to send generic message ? cmpilato (OCN Member) C. Michael Pilato 2012-03-22 11:20:18 PDT
                         RE: Re: Create or modify hook script to send generic message ? phil_pinkerton (OCN Member) Phil Pinkerton 2012-03-22 13:25:01 PDT
Messages per page: