[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: post-commit hook

From: nikhil gupta <ng_g20_at_hotmail.com>
Date: 2007-07-31 06:56:23 CEST

Hi Ryan,
I want my post-commit to do the following:
1. To create an HTML file detailing the checkin: files added/deleted/modified, author etc.
2. Checkout a certain codeReview.xls to a location.
3. Send mail with the body as the above HTML & the xls file as attachment.
Now, if I remove the attachment part, i mean if I remove the checkout xls & attach to the mail part, this post-commit works fine. But, with the checkout thing in picture, if fails to send any mail & does not throw an error either.
I tried to run the batch file manually, it runs great. It creates the HTML, checksout the xls, attaches it to the mail & sends the mail successfully. But, does not do the same when run through a checkin.
The command for checkout that I'm using is :
svn checkout -r%REV% http://<repositoryLocation> c:\Temp\codeReview
here %REV% is the value coming from svn to the post-commit hook...
> CC: users@subversion.tigris.org> From: subversion-2007b@ryandesign.com> Subject: Re: post-commit hook> Date: Mon, 30 Jul 2007 17:26:33 -0500> To: ng_g20@hotmail.com> > On Jul 30, 2007, at 06:48, nikhil gupta wrote:> > > I want to add a hook to my SVN Repository to send a mail after > > every checkin... I created an exe for this & am calling the same in > > a post-commit.bat file.> >> > Now, as a process we, in my orgaization, send a codeReview.xls file > > as an attachment with the checkin mail. So, to implement the same, > > I added a svn checkout command in the exe to checkout the > > codereview.xls for the relevent checkin & attach the same in the mail.> >> > But, this is not working when I test this by checking in a file. > > The same works fine if I run the post-commit.bat file manually on > > the command line.> >> > Any thoughts why is the same thing is working manually but not when > > going through the process??> > Could you be more specific? What exactly does your post-commit do, > and what exactly is the error message?> >
Sign in and get updated with all the action!
Received on Tue Jul 31 06:55:03 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.