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

Re: changing svn:externals value in the pre-revprop-change hook

From: Ryan Schmidt <subversion-2010b_at_ryandesign.com>
Date: Mon, 19 Jul 2010 11:03:22 -0500

On Jul 19, 2010, at 10:38, Bastien Semene wrote:

> The doc says that we should not "modify a commit transaction using hook scripts", but it is possible.
>
> We actually have to change svn:externals values for replication :
> - SVNs X1-Y1-... replicate SVNs X-Y-...
> - And there are svn:externals between SVN X-Y-...
>
> If we do nothing svn:externals into X1 points to SVN Y instead of SVN Y1.
>
> - Will this modification will break something on the client side, as a user only see the master or a slave ?

I would expect this would break things, yes.

> - Does someone use the pre-revprop-change hook script like this ?
> - Is there a cleaner solution ?

Yes, use the relative (instead of absolute) svn:externals syntax.

http://subversion.apache.org/docs/release-notes/1.5.html#externals
Received on 2010-07-19 18:04:05 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.