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

From: Jean-Marc van Leerdam <j.m.van.leerdam_at_gmail.com>
Date: Wed, 10 Sep 2008 13:24:51 +0200

Hi Jochen,

On 10/09/2008, jwezel <jwezel_at_compumaster.de> 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\

Wrong. You should NOT move/copy versioned folders like this. There are
special commands available to you for these actions: SVN Copy and
Rename. That will take care of the copy for you and also keep the
history intact.

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

No, you have effectively created two working copies. They can be used
separately to work with the same part of the repository. There is no
implicit relationship between the local root folder of a working copy
and the repository folder it is pointing to.

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

See above for better approach.

```--
Regards,
Jean-Marc
----------------
___
// \\  @@     "De Chelonian Mobile"
/ \_/ \/._)    TortoiseSVN
<\_/_\_/ /      The coolest Interface to (Sub)Version Control
/_/   \_\      Check out http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org