24Creating a Branch

Subversion branches are copies of the trunk and are stored in the branches directory inside the repository. The branches directory sits alongside the trunk directory, as we saw in Task 5, Creating an Empty Project. This directory organization is a Subversion convention—nothing forces you to organize your repository in this way, but if you stick to the convention, it makes it easier for people to work with your project.

To create a branch, use the Subversion copy command to copy the trunk to a new location. You should always use repository URLs when creating a branch. You can copy the file revisions in a working copy to create a branch, but using a repository URL is much faster. It’s also safer because if your working ...

Get Pragmatic Guide to Subversion now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.