Subversion Repository Layout

Posted by Tim Long on Stack Overflow See other posts from Stack Overflow or by Tim Long
Published on 2010-04-09T22:03:04Z Indexed on 2010/04/10 12:23 UTC
Read the original article Hit count: 307

Most subversion tools create a default repository layout with /trunk, /branches and /tags. The documentation also recommends not using separate repositories for each project, so that code can be more easily shared.

Following that advice has led to me having a repository with the following layout:

/trunk
      /Project1
      /Project2
/branches
         /Project1
         /Project2
/tags
     /Project1
     /Project2

and so on, you get the idea. Over time, I've found this structure a bit clumsy and it occurred to me that there's an alternative interpretation of the recommendations, such as:

/Project1
         /trunk
         /branches
         /tags
/Project2
         /trunk
         /branches
         /tags       

So, which layout do people use, and why? Or - is there another way to do things that I've completely missed?

© Stack Overflow or respective owner

Related posts about svn

Related posts about repository-design