HowTos / SvnWork

Getting Stuff from the Shadlen repository

Next: Accessing remotely


Let's say you want to get a copy of the OS X dot code to use on your computer. For this, you would want an "official release" rather than a working copy, so look to see what releases are available:

 
svn list file:///lab/subversion/ShadlenDotsX/tags 
release-1.0/

Now we can get the code we want:

svn checkout file:///lab/subversion/ShadlenDotsX/tags/release-1.0 ShadlenDotsX/

If we want to make some changes to the code, rather than just use the latest release, we should download the latest working copy instead:

svn checkout file:///lab/subversion/ShadlenDotsX/trunk ShadlenDotsX/

Basic Work Cycle


From the Subversion book:

The typical work cycle looks like this:

  • Update your working copy
    • svn update
  • Make changes
    • svn add
    • svn delete
    • svn copy
    • svn move
  • Examine your changes
    • svn status
    • svn diff
  • Possibly undo some changes
    • svn revert
  • Resolve Conflicts (Merge Others' Changes)
    • svn update
    • svn resolved
  • Commit your changes
    • svn commit

There are GUIs availble to make interaction with Subversion easy, although the command lines are also pretty simple. All of the above commands are explained in detail in the Subversion book here. I also strongly suggest looking at the chapter about branches, as this is a very useful feature/way to work.

Now let's look at accessing your repository from machines other than the linux cluster HowTos.SvnRemote.

Svn - Introduction to Subversion
SvnImport - Importing projects into a Subversion Repository
SvnRemote - Accessing your Subversion Repository Remotely
SvnRemote-Draft - Accessing your Subversion Repository Remotely
SvnSetup - Setting up Your Subversion Repository
SvnWork - Basic Subversion Work Cycle