CS 453 Programming Assignment #0 Part 2 — Creating a repository for your assignment

Introduction

Subversion is revision control system software that you'll be using CS453. There are notes on subversion available on this page as well as the department WIKI at: https://www.cs.colostate.edu/wiki/Subversion.

Creating a new repository from scratch

Step 1) Create a directory for your future subversion repositories in a location of your choosing. For PA0 this location should be under your home directory. For PA2 on this location should be in your assigned group directory under the ~cs453 account.
    >  cd ~
    >  mkdir SVN_Repositories


Step 2) Create a repository - This contains a database that will keep track of all the versions of your files. After creation you will not touch this directory directly; only indirectly through subversion commands.
    >  cd SVN_Repositories
    >  svnadmin create PA0

Putting PA0 into your repository

To put PA0 into your repository check out a working directory of your repos on the command line, copy your PA0 code into it, and commit this code. Do not checkout a working copy inside of your repositories directory.
   > cd ~
   > svn checkout svn+ssh://username@machine.cs.colostate.edu/myhomedir/SVN_Repositories/PA0 PA0
   > cd PA0
   > cp -r ~/myOrignalPA0dir/* .
   > svn add *
   > svn commit -m "Copied completed PA0 into repository."
TIP: To determine the full-path to your SVN_Repositories directory you can cd into it then use pwd -P.

WARNING: Do not follow this procedure to copy files from an existing working copy (doing this will copy the hidden .svn directory and cause all sorts of badness), instead use svn export.

For this assignment you're a-okay because your not copying PA0 from an existing working copy. To figure out if a directory is a working copy you can use the svn info command.

Where you might run into trouble is if you want to fork a new repository for an assignment from an existing repository.

Setting up in Eclipse

For information on how to setup Eclipse to use subversion read this information.

Grading

Once you've finished creating your repository and setting it up in Eclipse show your progress to the TA so you can be checked off. If you're a distance student e-mail your subversion log to cs453@cs.colostate.edu.