[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: John Peacock <jpeacock_at_rowman.com>
Date: 2007-07-31 15:56:40 CEST

nikhil gupta wrote:
> I hope you are talking about the user which has the repository on it...
> In my case it is in the administrator group.

No, I am talking about the account that is executing the service (which is what
is the active account for running the postcommit). In another e-mail you said
you are doing 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.

Is #2 a local drive to the server where the Subversion server is running? It
must not be a drive map (which only exist for real users, not services).

You may consider using SVN::Notify to handle #1 and #3; this is a flexible
postcommit framework in Perl that produces a variety of commit log messages. It
should be straightforward to use SVN::Notify::Mirror (which I wrote), to handle
#2 as well, though getting the XLS file attached to the same e-mail as the
commit message will take some additional programming (though not hard).


John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Blvd
Suite H
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jul 31 15:55:05 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.