Add new SVN "repo" in poorly constructed repo/project setup

869 views Asked by At

Unfortunately, the answer to this question isn't quite as simple as it sounds... but I hope it can still be relatively simple. Please read all the way through before telling me that the answer is: "svnadmin create... duh"

I'm working for a company that set up their SVN server in an odd way (at least in terms of what I'm used to). We've all been there, right?

Rather than giving each project a separate repository... they have a folder on the server called "/var/www/svn/repos/" which is the actual SVN repo (has conf/, db/, README.txt, etc. in it). Then they distinguish their projects by adding top level folders into the ONE repository (ex: Project1, Project2, etc.)

I don't like this setup and might one day get around to converting the setup to what I'm used to, where each project is its own repository (with separate logs, dbs, etc.)

But my question is this: What is the best way to add a new empty project to the current setup? Is there anyway to add a new top level folder/project to the repo through use of svnadmin? It can/should just be an empty folder that I'll start building a new project in.

I know that I could do this by checking out the whole singular repository and then adding a new top level folder into my local checkout, then re-committing. But I'd really prefer not to do this because someone has created folders/projects that are just GBs of log data... and I don't want to wait through the download of this just to add a single empty folder.

Let me know if there is any more info you'd need to know. I do have root/sudo access on the server in question.

Thanks in advance for your help!

Dave

EDIT: The way that SVN is used at this company, no one checks out the full repo... they just check out the folder/project they are interested in. So I don't have a local checkout available anywhere that goes "high" enough in the SVN repo directory structure to just run a "svn mkdir" command.

1

There are 1 answers

5
Jeremy Whitlock On BEST ANSWER

Well, this is actually a common practice. To create a new project path, just use the Subversion client of choice to create a new path at the same level with the rest of the projects with the name of the new project.