Search code examples
svndirectory-structure

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?


Solution

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