Sbot Common Repository

From IridiaWiki
Jump to navigationJump to search

What is version control?

Version control is a standard software development tool, which automaticall keeps track of changes in your code.

This means that you can view previous versions of your code, and do diffs:

  1. I know that this function was working last thursday - I want to see how it looked back then.
  2. Yesterday this was working, today it isn't - what have I changed?


What is the Sbot Common Repository?

The sbot common repository is NOT the sbot common interface.

It is very simply just a place where all of us can store our files of whatever nature, so that they are under version control, backed up and visible to each other.

  1. Libraries will live here (in the 'lib' directory) and have a single standard version - e.g. sboteyelib, libheading
  2. libsbotapi and toolchain also included in the 'lib' directory, along with build scripts to make life easier
  3. Tools will also live here - e.g. scripts to copy files to sbot, checkfocus
  4. Easy access to each other's code:
    1. No need to email around code segments - instead: check out my controller xxxx, function yyyy() in the common repository


Common Repository Howto

  1. Install subversion.
    • apt-get install subversion
  2. Checkout common interface from repository
    • svn checkout svn+ssh://<your iridia username>@iridia.ulb.ac.be/usr/local/share/svn_repositories/sbotci

If you are not using twodee or the common interface, put all your stuff in the directory sbotci/user/<your user name>

  1. Now you just need 3 commands
    1. svn add <file/directory> Adds a file to the repository.
    2. svn commit <filen/directory> takes a snapshot of all your files. (recursively if a directory)
    3. svn update <file/directory> gets the latest version from the server (e.g. of common tools)