René Nyffenegger's collection of things on the web
René Nyffenegger on Oracle - Most wanted - Feedback -
 

Subversion: Creating a branch

Note: this page is part of Subversion basic operations.
The way a branch is created in Subversion is to make a copy.
C:\support>svn copy file:///c:/svn_repository/project_text file:///c:/svn_repository/project_text_R1.0 -m "Rel 1.0"

Committed revision 6.
Indeed, the directory was copied within the repository.
C:\support>svnlook tree \svn_repository
/
 project_text/
  english/
   fruits.txt
  german/
   fruits.txt
 project_text_R1.0/
  english/
   fruits.txt
  german/
   fruits.txt
Support will use project_text_R1.0 to work on. They don't need project_text anymore:
C:\support>rmdir /s project_text
However, they need a working copy of project_text_R1.
C:\support>svn checkout file:///c:/svn_repository/project_text_R1.0
A  project_text_R1.0\english
A  project_text_R1.0\english\fruits.txt
A  project_text_R1.0\german
A  project_text_R1.0\german\fruits.txt
Checked out revision 6.