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

Re: can I use svn:externals instead of svn copy to create a tag?

From: David Weintraub <qazwart_at_gmail.com>
Date: Thu, 10 Jun 2010 23:22:33 -0400

I already have a pre-commit hook that just does this. You can set an
"add-only" parameter which allows you to copy files into that
directory, but not modify files in that directory.

Take a look at it: http://dl.dropbox.com/u/433257/hooks.zip.

On Thu, Jun 10, 2010 at 4:42 PM, Gary Hallmark <gary.hallmark_at_oracle.com> wrote:
> All examples I have seen for tagging use svn copy (or svncopy -tag) to
> create a tag. If I want to make sure nobody can change the tag, I guess I
> could write a commit hook. But couldn't I use a versioned external
> definition to create the tag instead of svn copy? Seems this would better
> enforce that nobody can change the tag, since it isn't a copy at all. One
> downside would be that if the tag contains unversioned externals, I would
> not be able to pin them down, but I don't plan to have unversioned
> externals. Are there any other downsides?
>
> Example:
> trunk/
> tags/
>   X -r123 ^trunk version_1.0
>
> Cheers,
>  Gary
>

-- 
David Weintraub
qazwart_at_gmail.com
Received on 2010-06-11 05:23:11 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.