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

Safely creating a tag/branch?

From: A.T.Hofkamp <a.t.hofkamp_at_tue.nl>
Date: 2005-08-16 09:36:06 CEST

Hello all,

I am wondering how to safely create a tag/branch?
A small example:

Suppose I have the following repository:

$ svn list --recursive --verbose file:///local/hat/tmp/svn/duptags/repository
       1 hat Aug 16 09:28 tags/
       1 hat Aug 16 09:28 trunk/
       1 hat 5 Aug 16 09:28 trunk/myfile

not very big, but you got to start somewhere :-)

Next, person #1 decides to create a tag 'release-1'
$ svn copy -m '#1: making release-1' \
   file:///local/hat/tmp/svn/duptags/repository/trunk \
   file:///local/hat/tmp/svn/duptags/repository/tags/release-1

Committed revision 2.

Due to some mis-communication, person #2 also does this:
$ svn copy -m '#2: making release-1' \
   file:///local/hat/tmp/svn/duptags/repository/trunk \
   file:///local/hat/tmp/svn/duptags/repository/tags/release-1

Committed revision 3.

Now, both people think they have successfully created a release, in reality
they have made a mess of the tag:

$ svn list --recursive --verbose \
   file:///local/hat/tmp/svn/duptags/repository/tags
       3 hat Aug 16 09:33 release-1/
       1 hat 5 Aug 16 09:33 release-1/myfile
       3 hat Aug 16 09:33 release-1/trunk/
       1 hat 5 Aug 16 09:33 release-1/trunk/myfile

The question is how to prevent this from happening, other than having person
#1 talk to person #2 and/or vice versa?

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 09:38:16 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.