[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: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2007-05-01 20:01:47 CEST

Simon Large wrote:

> 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.

No, please not!
Automatically creating folders is a bad idea. Imagine a user who has
mistyped the URL - we would create all intermediate directories to that
completely wrong path and do the tag.
It's best as it is right now: error out and let the user decide what to do.

Stefan

-- 
        ___
   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 Tue May 1 20:01:59 2007

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