Getting notification on changes to SVN Repositiry

View: New views
5 Messages — Rating Filter:   Alert me  

Getting notification on changes to SVN Repositiry

by Tanvi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

Just now I ccome across SVNKit.
I have a requirement like , when ever there are changes to SVNRepository  Immediately  I have to trigger a build.

Is it possible with SVNkit to handle change events?
Any suggestion plz?

Re: Getting notification on changes to SVN Repositiry

by Alexander Kitaev-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

There are two options:

1. Poll repository every NN seconds to check whether there are
modifications. Use SVNRepository.getLatestRevision() and compare it with
the previous value. Revision changes every time there is modification
and getLatestRevision() is a cheap operation. This approach will work
with any repository you have read access to.

2. Add post-commit hook script into repository (on the server side).
Make this hook send message to clients (certain host or hosts listening
on certain ports). This approach excludes polling, but far less generic
as the first one.

Alexander Kitaev,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!

Tanvi wrote:
> Hello,
>
> Just now I ccome across SVNKit.
> I have a requirement like , when ever there are changes to SVNRepository
> Immediately  I have to trigger a build.
>
> Is it possible with SVNkit to handle change events?
> Any suggestion plz?

---------------------------------------------------------------------
To unsubscribe, e-mail: svnkit-users-unsubscribe@...
For additional commands, e-mail: svnkit-users-help@...


Re: Getting notification on changes to SVN Repositiry

by Tanvi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Tanvi wrote:
Hello,

Just now I ccome across SVNKit.
I have a requirement like , when ever there are changes to SVNRepository  Immediately  I have to trigger a build.

Is it possible with SVNkit to handle change events?
Any suggestion plz?
thanks for ur suggestions.
I don't know how to add post-commit hook script to SVN Server. But I am trying to know that.
If u find free time, can u plz tell me the way to do this.

Re: Getting notification on changes to SVN Repositiry

by Chris Pearson-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi there,

On Wed, Jul 30, 2008 at 08:25:53PM -0700, Tanvi wrote:
> I don't know how to add post-commit hook script to SVN Server. But I am
> trying to know that.
> If u find free time, can u plz tell me the way to do this.

Have a look here:
http://svnbook.red-bean.com/en/1.4/svn.reposadmin.create.html#svn.reposadmin.create.hooks

Cheers,
Chris

---------------------------------------------------------------------
To unsubscribe, e-mail: svnkit-users-unsubscribe@...
For additional commands, e-mail: svnkit-users-help@...


Re: Getting notification on changes to SVN Repositiry

by Tanvi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello,

Thanks for ur support.

I finished the task :-)


LightInTheBox - Buy quality products at wholesale price!