I Like to Code
I Like to Code

Reputation: 7251

How to fix a wrong SVN directory structure?

I am working on a project called InvSim. I use SVN for version control and to backup my files. Unfortunately, when I first set up the repository, I put the project directly into the trunk folder. In other words, my directory structure currently is the following:

trunk
    src
    input
    lib

What I would like to do is to instead have the directory structure to look like this:

trunk
    InvSim
        src
        input
        lib

From what I understand, this is the conventional to organize the SVN repository. Is there any way for me to fix the directory structure?

Upvotes: 0

Views: 1014

Answers (3)

JB Nizet
JB Nizet

Reputation: 691635

Create a new directory under trunk, and move everything you have to this directory. But your current structure is not unconventional, and there's probably no reason to change it.

Upvotes: 1

asifsid88
asifsid88

Reputation: 4701

try renaming the folder using SVN rename option. Right click on folder -> SVN -> rename

Install Visual SVN, this is handy

Upvotes: 0

Oliver Charlesworth
Oliver Charlesworth

Reputation: 272467

In your working copy, you can use svn mkdir InvSim to make a new directory. You can then use e.g. svn mv src InvSim/ to move each of the original directories in turn. Then do an svn commit.

Upvotes: 1

Related Questions