Difference between revisions of "Create SVN Branch"

From ADF Docs
Jump to: navigation, search
(Created page with '== Overview == One of the features of version control systems is the ability to isolate changes onto a separate line of development. This line is known as a ''branch''. Branches…')
 
Line 2: Line 2:
 
One of the features of version control systems is the ability to isolate changes onto a separate line of development. This line is known as a ''branch''.  Branches are often used to try out new features without disturbing the main line of development with compiler errors and bugs. As soon as the new feature is stable enough then the development branch is ''merged'' back into the main branch (trunk).  
 
One of the features of version control systems is the ability to isolate changes onto a separate line of development. This line is known as a ''branch''.  Branches are often used to try out new features without disturbing the main line of development with compiler errors and bugs. As soon as the new feature is stable enough then the development branch is ''merged'' back into the main branch (trunk).  
  
Subversion does not have special commands for branching, but uses so-called ''cheap copies'' instead. Cheap copies are similar to hard links in Unix, which means that instead of making a complete copy in the repository, an internal link is created, pointing to a specific tree/revision. As a result branches are very quick to create, and take up almost no extra space in the repository.
+
Subversion does not have special commands for branching, but uses so-called ''cheap copies'' instead. Cheap copies are similar to hard links in Unix, which means that instead of making a complete copy in the repository, an internal link is created, pointing to a specific tree/revision. As a result branches are very quick to create and take up almost no extra space in the repository.
  
More information view this page, [http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-branchtag.html TortoiseSVN branching/tagging]
+
For more information, view this page: [http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-branchtag.html TortoiseSVN branching/tagging]
  
 
== Create a New Branch ==
 
== Create a New Branch ==
Line 11: Line 11:
 
# Locate the Apps directory (not within the ADF directory) and right click the checked out SVN repository.  From the menu, select ''TortoiseSVN'' > ''Branch/tag...''.
 
# Locate the Apps directory (not within the ADF directory) and right click the checked out SVN repository.  From the menu, select ''TortoiseSVN'' > ''Branch/tag...''.
 
## [[File:svn_apps_04.jpg]]
 
## [[File:svn_apps_04.jpg]]
# In the ''Copy'' dialog, enter the URL for the new branch.  It would be something like this, ''http://consulting.paperthin.com/svn/pt_article_editor/branches/1.0.0''.  For the other fields in the dialog, select ''HEAD revision in the repository'' and check the box for ''Switch working copy to new branch/tag''  
+
# In the ''Copy'' dialog, enter the URL for the new branch.  It would be something like ''http://consulting.paperthin.com/svn/pt_article_editor/branches/1.0.0''.  For the other fields in the dialog, select ''HEAD revision in the repository'' and check the box for ''Switch working copy to new branch/tag''  
 
## [[File:svn_apps_05.jpg]]
 
## [[File:svn_apps_05.jpg]]
 +
 +
[[Category: How-to Guide]]

Revision as of 00:27, 20 December 2009

Overview

One of the features of version control systems is the ability to isolate changes onto a separate line of development. This line is known as a branch. Branches are often used to try out new features without disturbing the main line of development with compiler errors and bugs. As soon as the new feature is stable enough then the development branch is merged back into the main branch (trunk).

Subversion does not have special commands for branching, but uses so-called cheap copies instead. Cheap copies are similar to hard links in Unix, which means that instead of making a complete copy in the repository, an internal link is created, pointing to a specific tree/revision. As a result branches are very quick to create and take up almost no extra space in the repository.

For more information, view this page: TortoiseSVN branching/tagging

Create a New Branch

Follow the steps below to create a new branch and set it as your working copy.

  1. Locate the Apps directory (not within the ADF directory) and right click the checked out SVN repository. From the menu, select TortoiseSVN > Branch/tag....
    1. Svn apps 04.jpg
  2. In the Copy dialog, enter the URL for the new branch. It would be something like http://consulting.paperthin.com/svn/pt_article_editor/branches/1.0.0. For the other fields in the dialog, select HEAD revision in the repository and check the box for Switch working copy to new branch/tag
    1. Svn apps 05.jpg