0

Possible Duplicate:
What do “branch”, “tag” and “trunk” really mean?

I am brand new to subversion, so please bear with me. I know that the standard directory structure for a repository are as follows:

/branches/
/tags/
/trunk/

I'm not sure what each of these directories are for. Could someone:

  1. describe the purpose of each directory
  2. provide a sample directory structure for project management in a single-user environment
  3. provide a sample directory structure for project management in a multi-user environment
  4. provide sample directory structure(s) for a parent project which will contain multiple add-ons, each being their own smaller project

Sorry for the crash list of questions. I will award extra points for good answers.

Thank you for your time!

Community
  • 1
  • 1
Oliver Spryn
  • 16,871
  • 33
  • 101
  • 195
  • 1
    Have you read http://svnbook.red-bean.com? If not do so, and then come back with your questions. And to be honest, although I like SVN, I'd recommend looking at a DVCS like mercurial, unless your use case involves big binary files. –  May 24 '11 at 22:49
  • 2
    @Neil Butterworth - there are lots of reasons to use SVN. Don't just randomly say try out a DVCS. – manojlds May 24 '11 at 22:51
  • I agree. I am relatively comfortable with SVN, as I have all of the tools. I just need to know the standards. :D – Oliver Spryn May 24 '11 at 22:52
  • @manojlds Please point out where I "randomly" said such a thing. –  May 24 '11 at 22:52
  • Ypu don't know why he is using SVN in the first place. For all you know, he moved to SVN from Git. SVN is useful due to many reason apart from Binary files, like great sysadmin tool support. – manojlds May 24 '11 at 22:54
  • @ manojlds You are right - I don't know (and neither do you) - which is why I said "I'd recommend looking at a DVCS like mercurial", and not "I'd recommend changing to a DVCS like mercurial instantly". –  May 24 '11 at 22:56
  • That's okay, I understand you are just trying to help. Thanks! – Oliver Spryn May 24 '11 at 23:00

1 Answers1

1

you can look here : What do "branch", "tag" and "trunk" mean in Subversion repositories?

One additional detail is that all the folders are just same, it is just a convention to have this structure and they do not have special meaning per se. The structure should be the same in single-user or multi-user environment and it is the one in the question generally.

In multi-user environment, sometimes we have /privatebranches meaning that it is some sort of spike and is not for general use. Also these may be non standard as in branch of a particular folder within trunk etc.

For multiple add-ons type project:

repo   
    project1
        trunk
        branches
        tags
    addon1
        trunk
        branches
        tags
    addon2
        trunk
        branches
        tags

Also in that case you can look at using svn externals to manages the projects. So they will still have the above structure, but you can make it seem like the add-ons are contained within Project1

Community
  • 1
  • 1
manojlds
  • 290,304
  • 63
  • 469
  • 417