You can use a hook script to error the second cp out. Take a look over some
of the pre-written ones that come with subversion, you should be able to
find something that does what you want.
-Brian
----- Original Message -----
From: "A.T.Hofkamp" <a.t.hofkamp@tue.nl>
To: <users@subversion.tigris.org>
Sent: Tuesday, August 16, 2005 2:36 AM
Subject: Safely creating a tag/branch?
> 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
>
>
---------------------------------------------------------------------
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:18:13 2005