<p>We have the standard Subversion trunk/branches/tags layout. We have several branches for medium- and long-term projects, but none so far for a release. This is approaching fast.</p>

<p>Should we:</p>

<ol>
<li>Mix release branches and project branches together?</li>
<li>Create a releases folder? If so, is there a better name than releases?</li>
<li>Create a projects folder and move the current branches there? If so, is there a better name than projects? I've seen "sandbox" and "spike" in other repositories.</li>
<li>Something else altogether?</li>
</ol>

[{'answer_id': 49366, 'author': 'Polsonby', 'author_id': 137, 'author_profile': 'https://Stackoverflow.com/users/137', 'pm_score': -1, 'selected': False, 'text': '<p>Releases is the same as tags... Have you got multiple projects inside your trunk? In that case, I would copy the same folders inside tags</p>\n\n<p>So</p>\n\n<pre><code>trunk\n     fooapp\n         stuff...\n     barapp\n         stuff...\ntags\n     fooapp\n         1.0.0\n         1.0.1\n     barapp \n         1.0.0\n</code></pre>\n'}, {'answer_id': 49372, 'author': 'Carl Seleborg', 'author_id': 2095, 'author_profile': 'https://Stackoverflow.com/users/2095', 'pm_score': 0, 'selected': False, 'text': '<p>When we want to prepare for the release of, say, version 3.1, we create a branches/3.1-Release branch, and merge individual commits from trunk as we seem fit (our release-branches usually only receive the most critical fixes from the main development branch).</p>\n\n<p>Typically, this release branch lives through the alpha- and beta- testing phases, and is closed when the next release is on the threshold.</p>\n\n<p>What you can also do, once your DVDs are pressed or your download package uploaded, is to tag the release branch as released, so you can easily rebuild from exactly the same revision if you need to later.</p>\n\n<p>Carl</p>\n'}, {'answer_id': 49376, 'author': 'mpdaly', 'author_id': 3984, 'author_profile': 'https://Stackoverflow.com/users/3984', 'pm_score': 0, 'selected': False, 'text': '<p>We already use tags, although we have the one-big-project structure rather than the many-small-projects you have outlined.</p>\n\n<p>In this case, we need to tag, e.g. 1.0.0, but also branch, e.g. 1.0. My concern is mixing project branches and release branches together, e.g.</p>\n\n<pre><code>branches\n    this-project\n    that-project\n    the-other-project\n    1.0\n    1.1\n    1.2\ntags\n    1.0.0\n    1.0.1\n    1.1.0\n    1.2.0\n    1.2.1\n</code></pre>\n'}, {'answer_id': 49390, 'author': 'Troels Arvin', 'author_id': 4462, 'author_profile': 'https://Stackoverflow.com/users/4462', 'pm_score': 3, 'selected': False, 'text': "<p>I recommend the following layout, for two reasons:\n - all stuff related to a given project is within the same part of the tree; makes\n   it easier for people to grasp\n - permissions handling may be easier this way</p>\n\n<p>And by the way: It's a good idea with few repositories, instead of many, because change history normally is better preserved that way (change history is gone if you move files between repositories, unless you take special and somewhat complicated action). In most setups, there should only be two repositories: the main repository, and a sandbox repository for people experimenting with Subversion.</p>\n\n<pre><code>project1\n   trunk\n   branches\n     1.0\n     1.1\n     joes-experimental-feature-branch\n   tags\n     1.0.0\n     1.0.1\n     1.0.2\nproject2\n   trunk\n   branches\n     1.0\n     1.1\n   tags\n     1.0.0\n     1.0.1\n     1.0.2\n</code></pre>\n"}, {'answer_id': 203680, 'author': 'Ken Liu', 'author_id': 25688, 'author_profile': 'https://Stackoverflow.com/users/25688', 'pm_score': 0, 'selected': False, 'text': '<p>Where I work, we have "temp-branches" and "release-branches" directories instead of just "branches". So in your case project branches would go under temp-branches, and release branches (created at time of release, of course) would go under release-branches.</p>\n'}, {'answer_id': 203701, 'author': 'cdeszaq', 'author_id': 20770, 'author_profile': 'https://Stackoverflow.com/users/20770', 'pm_score': 1, 'selected': False, 'text': '<p>Taking off from what others have said, we have a rather rigid structure of progression from alpha, to beta, to production. The alpha code is whatever the head of the trunk is, and is kept stable for the most part, but not always. When we are ready to release, we create a "release branch" that effectively freezes that code, and only bug fixes are applied to it. (These are ported back into the trunk). Also, tags are periodically made as release candidates, and these are the beta versions. Once the code moves to production, the release branch is kept open for support, security, and bug-fixing, and minor versions are tagged and release off of this.</p>\n\n<p>Once a particular version is no longer supported, we close the branch. This allows us to have a clear distinction of what bugs were fixed for what releases, and then they get moved into the trunk.</p>\n\n<p>Major, long-term, or massive changes that will break the system for long periods of time are also given their own branch, but these are much shorter-lived, and don\'t have the word "release" in them.</p>\n'}, {'answer_id': 869670, 'author': 'Manabenz', 'author_id': 97162, 'author_profile': 'https://Stackoverflow.com/users/97162', 'pm_score': 0, 'selected': False, 'text': "<p>Another important consideration is when to branch and when to close a branch -- which depends on your release schedule but also how long it takes you to test and release. In my experience this takes a lot of management in terms of ensuring everyone in the team knows what the plan is and when to use what, all of which was helped by documeting it all in a release wiki.</p>\n\n<p>Not quite the answer you are looking for but I think once you have the structure sorted, for which you've had plenty of good suggestions already, the next challenge is keeping the team informed and on track.</p>\n"}]
['https://Stackoverflow.com/questions/49356', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3984/']