Sbot Common Repository

From IridiaWiki
(Difference between revisions)
Jump to: navigation, search
 
 
Line 11: Line 11:
 
==What is the Sbot Common Repository?==
 
==What is the Sbot Common Repository?==
   
Very simple - 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.
+
The sbot common repository is NOT the sbot common interface.
   
This also means that rather than emailing around code segments, we can just say - check out my controller xxxx, function sound_trap().
+
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.
  +
  +
# Libraries will live here (in the 'lib' directory) and have a single standard version - e.g. sboteyelib, libheading
  +
# libsbotapi and toolchain also included in the 'lib' directory, along with build scripts to make life easier
  +
# Tools will also live here - e.g. scripts to copy files to sbot, checkfocus
  +
# Easy access to each other's code:
  +
## No need to email around code segments - instead: check out my controller xxxx, function yyyy() in the common repository
   
   
Line 23: Line 23:
 
#Checkout common interface from repository
 
#Checkout common interface from repository
 
#*svn checkout svn+ssh://<your iridia username>@iridia.ulb.ac.be/usr/local/share/svn_repositories/sbotci
 
#*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>
  +
 
# Now you just need 3 commands
 
# Now you just need 3 commands
 
## svn add <file/directory> Adds a file to the repository.
 
## svn add <file/directory> Adds a file to the repository.

Latest revision as of 13:45, 2 August 2006

[edit] 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?


[edit] 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


[edit] 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)
Personal tools