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

RE: creating a tag from TortoiseSVN - should the tag parent direc tory already exist?

From: Doucette, Charles <cdoucette_at_vaultus.com>
Date: 2007-04-27 23:39:20 CEST

I'm not sure if I was clear.

Our repository is svn://rope/software

It has

trunk/vsw
tags/
        tag1/
                vsw
        tag2/
                vsw
        tag3/
                vsw
branches/
        branch1/
                vsw
        branch2/
                vsw
        branch3/
                vsw

I wanted to create a tag based on my Working Copy directory.

My working copy directory was vsw.

Let's pretend I wanted to create a tag named tag4.

If I use the command line tool, it would be:

svn copy vsw svn://rope/software/tags/tag4

In this case, I had already created the directory tag4 in the repository.
It successfully copied the directory vsw under tag4.

Before I did it in the command line, I tried to do it using Tortoise.

I said the target URL was
svn://rope/software/tags/tag4

It failed and told me the target directory already exists.

Either it should not have said that, and it should have worked like the
command line version,
or it doesn't expect the target directory to exist and plans to create it
itself for me.

If you're saying that neither TortoiseSVN nor the command line version
create top-level or intermediate directories in the repository, then I
believe that the message it gave me was a bug.

Chuck

> -----Original Message-----
> From: Simon Large [mailto:simon.tortoisesvn@googlemail.com]
> Sent: Friday, April 27, 2007 5:09 PM
> To: users@tortoisesvn.tigris.org
> Subject: Re: creating a tag from TortoiseSVN - should the tag
> parent directory already exist?
>
> On 27/04/07, Doucette, Charles <cdoucette@vaultus.com> wrote:
> > This is a somewhat similar problem to what I experienced
> checking out
> > a branch when I wanted a directory with the same name as the
> > repository directory to be created (and/or put under source
> control)
> > automatically.
> >
> > In this case, I am trying to tag/copy the working copy
> directory back
> > to the repository.
> > At some point, an appropriately named parent directory under tags
> > should be created in the repository.
> > I'm not sure if I must create it before trying to create
> the tags copy
> > of my WC directory or if it is created automatically for me
> during the
> > operation of the branch/tag dialog.
> >
> > I thought I was supposed to create it manually, and then the
> > branch/tag dialog failed and told me that the target
> directory already
> > existed.
> >
> > Ultimately, I was forced to use the command line tool to do
> what I wanted.
> >
> > svn copy vsw svn://<server>/<repos>/tags/VMP541_Build_763
> >
> > Then, the WC directory vsw was copied under the repository
> directory
> > VMP541_Build_763.
> >
> > So, should we always assume that in a branch/tag dialog that the
> > target directory should not already exist and will be
> created for you?
> > Perhaps the dialog text and/or documentation should be
> updated to state this clearly?
>
> The parent of the directory must exist in the repo. If you
> want to copy /trunk/customer1/project1 to
> /tags/customer1/project1/release_1.1
> then the tags folder must already contain /tags/customer1/project1.
> Subversion will not create intermediate folders.
> Unfortunately there is no easy fix for this. We can create
> intermediate dirs to our hearts content on a local drive, but
> the subversion API does not provide a way of doing this
> (without multiple commits) in the repo.
>
> I suppose we could automate it by doing a preliminary commit
> which imports the intermediate folder structure, but it would
> be better for SVN to fix this at their end.
>
> I will try to clarify this in the docs.
>
> Simon
>
> --
> ___
> oo // \\ "De Chelonian Mobile"
> (_,\/ \_/ \ TortoiseSVN
> \ \_/_\_/> The coolest Interface to (Sub)Version Control
> /_/ \_\ http://tortoisesvn.net
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
> For additional commands, e-mail: users-help@tortoisesvn.tigris.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Fri Apr 27 23:40:40 2007

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.