[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: Chris Wein <cwein_at_mobilygen.com>
Date: 2005-08-16 20:12:45 CEST

This is exactly what we did although we solved this problem in the
context of trying to prevent advertent/inadvertent changes
to /tags/tagname. The script allows adds to /tags but not to subdirs
of /tags, as well as prevent modifications of under /tags. This same
mechanism would prevent the second tag creation as it would infer that
you are trying to illegally modify an existing tag.

On Tue, 2005-08-16 at 10:15 -0500, Brian Huddleston wrote:
> 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
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Aug 16 20:14:34 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.