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

RE: Pre-commit hook

From: Scott Vickery <svickery_at_cavucorp.com>
Date: Fri, 10 Jul 2009 16:15:43 -0400

Cool ideas from all.

At the end of the day, I think I will have to keep this as a separate process. I think....

Scott

-----Original Message-----
From: Ryan Schmidt [mailto:subversion-2009b_at_ryandesign.com]
Sent: Friday, July 10, 2009 3:06 PM
To: Bob Archer
Cc: Scott Vickery; users_at_subversion.tigris.org
Subject: Re: Pre-commit hook

On Jul 10, 2009, at 13:58, Bob Archer wrote:

>>> I have a process in place that sanity checks SQL scripts. The user
>>> can take a list set of scripts which are then run against a series
>>> of databases to see if they run. The user is given feedback as they
>>> run. If the scripts fail, the user is told which database the
>>> script failed against.
>>>
>>> I want to put that process in place as pre-commit hook. So far so
>>> good. But, I would like to provide real time progress to the user
>>> that did the commit.
>>>
>>> Any ideas on how I could pull this off? AFAIK, the pre commit hook
>>> is only run on the server, and, there is no way for the user to see
>>> it. Correct?
>>
>> If you want to send non-failure status messages from your pre-commit
>> hook script to the user, you have to use a roundabout way. One way is
>> email, if you have a known mapping between the ID the user commits to
>> the repository as and their email address. Another more immediate way
>> would be an instant messaging client, if your developers use one and
>> you can map their repository ID to their instant messaging handle.
>
> Hey, nice idea. You could have your build server tweet status update
> messages and your devs that cared could follow the build servers
> account.

If this is an open source project, sure, using Twitter could be interesting too.

In my instant messaging suggestion I was thinking more of corporate users who wouldn't want to broadcast information about their private projects. They might instead set up a jabber server, for example, inside the corporate firewall, and use it to broadcast messages.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2370166

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-07-10 22:18:54 CEST

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.