Working with SVN branches in Eclipse

From Joomla! Documentation
(Difference between revisions)
Jump to: navigation, search
(instructions for working with branches with Eclipse)
 
(getting subclipse)
Line 1: Line 1:
 
{{inuse}}
 
{{inuse}}
This article provides step-by-step instructions for working with SVN branches using Eclipse and Subclipse (the Eclipse plug-in for Subversion).  
+
This article provides step-by-step instructions for working with SVN branches using Eclipse and Subclipse (the Eclipse plug-in for Subversion). The screenshots for this article were made using the latest 3.5 Eclipse version (Galileo). The screen contents for other Eclipse version may be somewhat different. It is important to have Subclipse version 1.6 (or later) for merging branches. This version greatly simplifies merging, since it keeps track of previously merged revisions automatically. If you are using an older version of Subclipse, it is strongly recommended that you update to version 1.6.
  
 
== Overview ==
 
== Overview ==
Line 14: Line 14:
  
 
== Getting Eclipse and Subclipse ==
 
== Getting Eclipse and Subclipse ==
Detailed instructions for installing Eclipse and Subclipse are available [[Setting_up_your_workstation_for_Joomla!_development | here]].  
+
Detailed instructions for installing Eclipse and Subclipse are available [[Setting_up_your_workstation_for_Joomla!_development | here]]. If you already have Eclipse installed and just need to update the Subclipse, follow these steps.
 +
# In Eclipse, navigate to Help → Install New Software. The screen below will show.
 +
 
 +
[[Image:Svn_merge_20100104_01.png]]
 +
 
 +
Press the Add button and add the Subclipse 1.6 update site <nowiki>"http://subclipse.tigris.org/update_1.6.x"</nowiki> as shown below:
 +
 
 +
[[Image:Svn_merge_20100104_02.png]]
 +
 
 +
Select the new update site in the "Work with" drop-down. Then select Optional JNA Library and Subclipse, as shown below.
 +
 
 +
[[Image:Svn_merge_20100104_03.png]]
 +
 
 +
Press Next and complete the wizard. You will be prompted to restart Eclipse to finish the installation. At this point, you should have the Subclipse 1.6 client software installed.  
  
 
== Creating a Branch ==
 
== Creating a Branch ==

Revision as of 22:52, 4 January 2010

This article provides step-by-step instructions for working with SVN branches using Eclipse and Subclipse (the Eclipse plug-in for Subversion). The screenshots for this article were made using the latest 3.5 Eclipse version (Galileo). The screen contents for other Eclipse version may be somewhat different. It is important to have Subclipse version 1.6 (or later) for merging branches. This version greatly simplifies merging, since it keeps track of previously merged revisions automatically. If you are using an older version of Subclipse, it is strongly recommended that you update to version 1.6.

Contents

Overview

The code for the latest stable Joomla! release is maintained in the SVN repository https://joomlacode.org/svn/joomla/development/trunk. To keep this version stable, new feature development should be done in SVN branches. A branch is a copy of the trunk at a point in time. The basic steps for working with a branch are as follows:

  1. Create a new branch on Joomlacode.
  2. Create an Eclipse project linked to the branch.
  3. Make program changes in your local Eclipse project and commit the changes back to the branch.
  4. As needed, merge changes from trunk into your branch.
  5. Finally, merge the branch back to trunk when the following conditions are met:
    1. The branch is up to date with trunk.
    2. The branch is stable.

Note that steps 3 and 4 above can be done as many times as needed.

Getting Eclipse and Subclipse

Detailed instructions for installing Eclipse and Subclipse are available here. If you already have Eclipse installed and just need to update the Subclipse, follow these steps.

  1. In Eclipse, navigate to Help → Install New Software. The screen below will show.

Svn merge 20100104 01.png

Press the Add button and add the Subclipse 1.6 update site "http://subclipse.tigris.org/update_1.6.x" as shown below:

Svn merge 20100104 02.png

Select the new update site in the "Work with" drop-down. Then select Optional JNA Library and Subclipse, as shown below.

Svn merge 20100104 03.png

Press Next and complete the wizard. You will be prompted to restart Eclipse to finish the installation. At this point, you should have the Subclipse 1.6 client software installed.

Creating a Branch

Creating an Eclipse Project Linked to the Branch

Updating a Branch with Changes from Trunk

Committing Changes from the Branch back to Trunk

Personal tools
Namespaces

Variants
Actions
Navigation
Joomla! Sites
Toolbox