[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 directory already exist?

From: Simon Large <simon.tortoisesvn_at_googlemail.com>
Date: 2007-04-27 23:09:18 CEST

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
Received on Fri Apr 27 23:09:23 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.