In SVN, trunk
is the recommended place for the main development and I use this convention for all of my projects. However, this means that trunk is sometimes unstable, or even broken. This happens for instance when
I can imagine there would be tools to prevent commiting something by mistake (TeamCity and delayed commits, for instance) but can you really overcome the second problem? If not, wouldn't it be better to do the "wild development" on some branch like /branch/dev
and only merge to trunk when the build is reasonably solid?
The trunk is the main line of development in a SVN repository. A branch is a side-line of development created to make larger, experimental or disrupting work without annoying users of the trunk version.
A project's trunk refers to a project's main development branch in the repository. Generally, developers working on the next main version of a project will be working on the trunk.
Note also that the Subversion team themselves, do not do Trunk-Based Development, despite Subversion have default root directories of 'trunk', 'tags' and 'branches' for newly-created repositories.
Your trunk should ALWAYS compile, if you need to make breaking changes you should use a branch and merge the changes back later.
Read this chapter of the SVN book: http://svnbook.red-bean.com/nightly/en/svn.branchmerge.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With