Switching Branches

From RifidiWiki

(Redirected from Switching repositories)
Jump to: navigation, search

Introduction

Sometimes it is necessary to use code from another branch in the svn repository. For example, if you want to run code that is tagged or is in another branch. The basic thing that you need to do is check out the code from that branch in the same way that you originally checked out the code. You can do this either by creating a new eclipse workspace and checking out the code into it, or you can delete the existing projects and check out the code into your existing workspace. The rest of this article will give you detailed instructions on how to go about deleting the old projects and checking out the new code.

Switching to a new branch or tag

Prerequisites

Delete the old Projects

  • The first step is to delete your existing projects. To do this, select all the project in your workspace (that you want to delete), right click, and select delete
    Delete existing projects
  • On the dialog box that pop up, select 'Also delete contents from file system'
    Delete dialog box

Check out new Projects

  • Now switch to the repository perspective by selecting Window->Open Perspective->Other->SVN Repository Exploring
    Opening repository exploring perspective
  • Drill down through the repository until you find the branch or tag that you want to check out.
  • Select the projects in that branch or tag, right click, and select checkout
    Checking out code from another branch or tag
  • Now select finish on the dialog box that pops up
    Checkout dialog box

Run the code

See Instructions on Running Rifidi.

Personal tools