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

RE: Re: hook for check out

From: Walter Nicholls <walter.nicholls_at_cornerstone.co.nz>
Date: 2004-01-08 22:42:04 CET

>> Is there a solution to my problem or do i have to write a wrapper for
>> svn?

>Svn doesn't do this; you need to write a wrapper for svn.
>There are server-side commit hooks, but there are no client-side hooks.

It occurs to me that this (client-side hooks) would actually be really
useful. A wrapper for svn(.exe) would work as long as the command-line
clients is used for everything. A hook system could also be used by the
GUIs such as Rapidsvn/Eclipse/Tortoise etc.

I know, I know, the post-1.0 bucket. I suspect implementing this would
not be easily. Finding the place to put the hooks wouldn't be too hard,
but making it reliable and working well (including having hooks modify
the Subversion client behaviour - eg prevent a commit if certain
conditions are or aren't met) would be a headache.

I can't off the top of my head think of anything which a wrapper
couldn't do - however it might be as hard or harder than writing a whole
new client (eg you might need to determine which files are being
committed, parse the text output of svn up or svn status). Might it not
be easier to hack the source for the svn client program? <g>
- Walter

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jan 8 22:41:30 2004

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.