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

Re: Creating copies of project with full folder structure leads to misbehaviour when commiting

From: Sam Barnett-Cormack <s.barnett-cormack_at_lancaster.ac.uk>
Date: Wed, 10 Sep 2008 12:31:49 +0100

jwezel wrote:
> Hello,
> I've checked out a folder from SVN with Tortoise using Windows
> Explorer. In that project folder, I've got several sub folders and
> complete directory structures in the subfolders.
> In my case, it is
> P:\svn-repos\projects\project_template\
> which is pointing to the repository path
> https://myserver/svn/trunk/projects/project_template/
> Now I want to create a copy of the existing project to create a NEW
> project. That's why I copy the folder using WinExplorer, assign the
> new, correct name
> P:\svn-repos\projects\project_CustomerABC\
> Then I want to commit my new project to the SVN repository. The
> problem is, that the .svn folders are copied as well and there the SVN
> path has kept to be the "old" project
> https://myserver/svn/trunk/projects/project_template/
> Tortoise doesn't realize that the SVN path doesn't match the current
> folder name "project_CustomerABC" any more and thinks all is fine. But
> it should now target to
> https://myserver/svn/trunk/projects/project_CustomerABC/
> The current workaround is to remove all .svn-folders in all the
> subdirectories, but this task is very boring if I must do it every and
> every time again I have to create a new project.

You probably want to do an "svn export" to create the new project from
the data of the old one. It won't have the history or anything, but you
can use those files for an svn import to the location you want it to
have. There is no relationship between folder names and paths in a
working copy and the paths within the repository on the server.

If you *do* want to keep history, then checkout the whole projects\
folder and do an "svn copy" of the project_template\ folder to
project_CustomerABC\. This may be simpler than doing an export, but it
is limited (AFAIK) to being within the same repository. Export/import
will allow the files to be a clean new start in a separate repository,
if you want that.


To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org
Received on 2008-09-10 13:32:01 CEST

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