See-Why.Net

  • Home
  • About
  • Projects

See why...

Hi! My name is Christine, I am Computer Science and Biology student at UBC. This blog will be about two of my interests: programming and crafting.
  • Archives

    • July 2011
    • September 2010
    • July 2010
    • June 2010
    • May 2010
  • Categories

    • Code Notebook (1)
    • CPSC430 (12)
    • Crafting (2)
    • Firefox Extension Development (1)
    • Programming (2)
    • Site Talk (1)
  • Tags

    blue shrink plastic origami BusTime Extensions svn subclipse form api jquery drupal 7 version control eclipse Firefox microsoft facebook introduction wordpress livejournal kantianism copyright social contract theory internet utilitarianism crafts earrings ethics
  • Search

Jul
07
2011

Creating a New Local SVN Repository for Subclipse

Filed under Programming

For my lone-programming projects, either work related or personal, I often create a Subversion (SVN) repository on my local machine. To interface with my repository, I use Subclipse, an Eclipse plug-in. Problem is every time I start a new project, I forget how to create a new SVN repository in Subclipse, and send ~1 hour googling. The key step that I always forget is that Subclipse can’t create repositories (the “Create a new repository location” option in Subclipse does not actually create a new repository), it can only do the initial import.

Assuming that you already have SVN, Eclipse and Subclipse installed:

  1. Form the terminal prompt, create an local repository. First create or cd into the directory you would like to house your repository, and then use svnadmin. Svnadmin will create a sub directory named after your project, and everything else svn needs.
    svnadmin create projectName
    (this is half of the first step from this tutorial).
  2. In Eclipse, open the SVN Repositories View (Window»Show View»SVN Repositories or select from the “Other” dialog if not shown). Click on the icon with the plus sign to add a new repository location. For the url, place the path to the repository created in step 1, prefixed by file:///. (You can find the path to any directory using the pwd command in the terminal.)
  3. Create your project as usual in Eclipse. Do the inital import into SVN by right clicking on your project in the Package Explorer, and selecting Team»Share Project. Choose “SVN” and select your repository location.
  4. You can now commit files, revert and merge etc. with SVN through Subclipse.

References: 1, 2, 3

Tagged: eclipse, subclipse, svn, version control

0 Comments


© Christine Y. 2010. Powered by Wordpress.