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

Re: Accidental double tag copy

From: Ryan Schmidt <subversion-2008c_at_ryandesign.com>
Date: Mon, 29 Sep 2008 05:40:35 -0500

On Sep 29, 2008, at 04:00, Rob Hubbard wrote:

[Running "svn cp $URL/trunk $URL/tags/tagname" twice causes
undesirable behavior]

>> Install a pre-commit hook to allow adds but not modifications
>> in the tags directory and you solve the problem.
>
> That's a good idea. However, it is possible that you might wish to
> create the tag and then adjust, for example, the version
> information in
> the tag itself. I'm not saying that's good practice, but a hook script
> does prevent the tags area from being used a little flexibly like
> this.

Ok, well you could write a less-restrictive hook script that would
prevent adding a directory inside a tag directory that has the same
name as the tag directory. For example, if you have a tag
"release-1.2.3", the script should prevent the creation of a
directory "release-1.2.3" inside it. That would solve the specific
problem of trying to create a tag that already exists. You could do
the same for branches if you want.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-09-29 12:41:03 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.