tags:

views:

19

answers:

1

Hi All,

Iam sending an email once the svn committ is succesful. Now i want to send the committed revision number (output of svn status -u) also in email. Iam using the blat to send an email in a batch file. blat - -body "Subversion Commit successful. Log file: \%computername%%OUTPUT_FILE%" -subject "Successful - SVN Commit'" -to [email protected].

Please do let me know how can i send an committed revision number in a mail.

A: 

You have to use the post-commit script in your repositories hook directory:

just place a post-commit.bat file there, and put in your blat command. Note: You have to use full pathnames to all execuables, as your PATH environment is empty.

Subversion will call your script after each commit and passes 2 arguments:

  • The path to your repository as %1%
  • The commited revision number as %2%
Peter Parker