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

Re: Re: RE: RE: RE: Static Revision updates on commit using externals property

From: Paul <alabamapaul_at_gmail.com>
Date: 2007-01-31 20:31:53 CET

Hope this helps.

Paul

On 1/30/07, Scott Nicolson <Scott.Nicolson@oscmar.co.nz> wrote:
>
> > This still would not solve your problem as the hook script would have
> > no knowledge if the correct "-r xxx" parameter was used, only that a
> > "-r xxx" parameter existed.
>
> I would not expect the hook script to fill in the -r for me, but instead
> just prevent any user creating a tag that used the external definition
> without the -r switch. This then just prevents the tag from referencing
> a moving target. Is it possible to create such a hook script and does
> one already exist?
>

I've added a section in the script that you can use, just change the
"my $svnExternalsCheck = 0;" to
"my $svnExternalsCheck = 1;"

> I would be interested in having a look at the hook script you created to
> prevent changes to tag directories as I was going to create a hook that
> does the same thing; if you don't mind.

I posted this script last year,
http://svn.haxx.se/users/archive-2006-03/1491.shtml
but I've modified it some since then, and today added the check for
svn:externals formatting that you're looking for.

Now the script can do the following:
* Check the log message length
* Only allow modification of TAGS by admin user
* Validate svn:externals use the -r parameter

Enjoy!

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org

Received on Wed Jan 31 20:32:05 2007

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

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