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

Re: Safely creating a tag/branch?

From: A.T.Hofkamp <a.t.hofkamp_at_tue.nl>
Date: 2005-08-16 17:10:27 CEST

Dale Worley wrote:
>> From: A.T.Hofkamp [mailto:a.t.hofkamp@tue.nl]
>>
>> The question is how to prevent this from happening, other than having
>> person #1 talk to person #2 and/or vice versa?
>
>
> Use a working copy, so this ambiguity in "svn copy" can't be triggered --
> the first one to check in tags/release-1 wins.

This solution implies that you must check out the tags or branches directory,
something you may not want to do for big or long running projects.
(especially just to prevent a race condition that will happen almost never).

Another consideration is that if you write a script/program that creates a
tag/branch, the user probably doesn't expect the entire tags or branches
subdirs in his working copy.

I was hoping there would be a cheaper/better alternative without resorting to
checking out a large number of sources.

The real culprit here imho is that the meaning of 'copy' changes in a subtle
manner depending on whether or not the target directory exists.

The solution I searched for was a flag "--directory-must-not-exist" of svn
copy that makes the command abort if the target directory already exists. That
would also solve the problem, in a much cheaper way (in space/time/bandwidth).

Albert

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Aug 16 17:16:06 2005

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.