All Collections
Using Subversion
Advanced Controls For SVN
Can I Create a Branch From an Earlier Revision?
Can I Create a Branch From an Earlier Revision?
Toshi Dávila avatar
Written by Toshi Dávila
Updated over a week ago

Yes, it is possible to create a branch from any revision. 

First, let's check out the help command:

svn help copy
-r [--revision] arg   : ARG (some commands also take ARG1:ARG2 range)
                        A revision argument can be one of:
                          NUMBER       revision number
                          '{' DATE '}' revision at start of the date
                          'HEAD'       latest in repository
                          'BASE'       base rev of item's working copy
                          'COMMITTED'  last commit at or before BASE
                          'PREV'       revision just before COMMITTED


To use this command in practice:

svn copy -r123 http://svn.example.com/repos/calc/trunk  http://svn.example.com/repos/calc/branches/my-calc-branch


In this case, "123" is the revision number you want to create a branch from. 

Need help? Contact us at support@assembla.com. 


Did this answer your question?