Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When's the best time to create the trunk, branches and tags directories?

I have executed svnadmin create --fs-type fsfs /home/firefli/web/projects/subversion and have myself a blank repo. If I create, say, the trunk directory using svn mkdir file:///home/firefli/web/projects/subversion/trunk it works fine but I go to revision 1.

Not that going to revision 1 is a problem, I'm just sure I've done it differently before and I'm looking for the best practice.

Thanks

share|improve this question
up vote 8 down vote accepted

When we create SVN repo's at work we svnadmin create and then svn import a skeleton folder of the 3 directories and commit that at once pushing it to revision 1 (We have a bash script automate all of this). I don't think there's a better practice than to just have the initial commit?

share|improve this answer
    
That's pretty much the same as we do - all automated with a script. – hmallett Feb 21 '10 at 19:36

On a fresh checkout of a new repository, I create and add the three directories - tags, trunk, and branches. I commit those three; the repo is on rev. 1, and I switch to trunk and get to work. Not much to it, really.

share|improve this answer

You can create all directories at once (resulting in one commit) without even checking out the repo. See this Windows example:

svn mkdir -m "Creating basic directory structure" file:///d:/temp/repo/trunk file:///d:/temp/repo/tags file:///d:/temp/repo/branches
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.