Brian Krusic wrote:
> Hi,
>
> I've been thrust into SVN and immediately given a task.
>
> SVN has already been installed and now we have a need;
>
> 1) When a local folder has been updated via SVN, an email is sent out.
> 2) An SVN update is then triggered facility wide.
>
> The second part could be fun to develop however I am hoping for some
> initial guidance to get started.
>
> I've already installed ssh and cygwin on all XP clients so that I can
> do my normal Unix like remote admin.
>
> Thanks in advance,
>
> Bri-
So, wait--someone does an "svn update", and you want to notify everyone
and force them to also do an "svn update"? Sounds risky to me,
especially when considering how to handle conflicts.
That said, the first step would have to be done with a wrapper around
"svn update", as there's no built-in support for client-side hooks (it's
a frequently requested feature, but there's no need for it, since the
same thing can be accomplished by writing a script that calls svn).
Thus, you'd have a script which the user runs which calls svn update,
checks the result, and then sends an e-mail. This would be pretty
simple to do.
The second part--forcing everyone else to update--would be harder, and
I'd be really nervous about trying it.
Hope that helps,
-David
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed May 17 20:49:34 2006