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

Re: [Subclipse-users] Hooking into the commit (checkin) action

From: Pascal Bleser <pascal.bleser_at_atosorigin.com>
Date: 2006-09-25 10:03:09 CEST

J B wrote:
> On 9/22/06, Mark Phippard <markp@softlanding.com> wrote:
>> "J B" <moatas@gmail.com> wrote on 09/22/2006 09:33:24 AM:
>>>> I understand how hook scripts work. But I am looking for a client side
>>> hook using subclipse. Our users can connect to many servers, each of them
>>> backed by a central subversion repository. When connecting to the remote
>>> server, the server returns a unique identifier, and the subversion repo
>>> address.
>>> Our client will checkout the necessary project from subversion based on
>>> this info. Once a user commits a change, we want to immediately notify the
>>> server they are working with.
>>> I suppose this could be handled with hook scripts, but I do not want to
>>> go that route. So given that, is their any integration with subclipse
>>> that will allow us to 'hook' into that action?
>> We do not have any explicit client-side hooks, so in that sense No.
>> There might be other ways. Subclipse has the concept of NotifyListeners.
>> For example, the console view is one of these. It is notified of events
>> and logs messages in response. You could potentially add yourself to the
>> list and then listen for commits. I can't say for certain whether
>> everything you need to do this is in place or not, but if you could, it
>> would be a way to do it that did not require modifying Subclipse.
> That sounds promising. I will look into that as an option.
> Thanks!

If it's just about notifications, we use Jabber for that.

We installed Wildfire as a Jabber/XMPP server in our intranet and I
wrote a simple Jabber bot in Java (using Smack and Mina) that connects
to a Jabber Groupchat room, listens for incoming messages on a socket
and publishes the commit messages to the room (more or less just
pushes data from the socket through to the Groupchat).

The glue is done with a post-commit Perl script that simply uses
svnlook and sends the commit information to the Jabber bot using
netcat (no, indeed, it's not secure, but the bot runs on the SVN repo
server so who cares ;)).

The notification isn't sent to Eclipse though, we all run Jabber clients.
OTOH there's GOIM and ECF:

  -o) Pascal Bleser               ATOS Worldline/Aachen(DE)
  /\\   System Architect              WLP Business Platform
 _\_v "Really, I'm not out to destroy Microsoft.  That will
just be a completely unintentional side effect."-L.Torvalds
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org
Received on Mon Sep 25 10:04:12 2006

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

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