Sbot Common Repository
From IridiaWiki
Jump to navigationJump to searchWhat 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:
- I know that this function was working last thursday - I want to see how it looked back then.
- 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.
- 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
Common Repository Howto
- Install subversion.
- apt-get install subversion
- 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>
- Now you just need 3 commands
- svn add <file/directory> Adds a file to the repository.
- svn commit <filen/directory> takes a snapshot of all your files. (recursively if a directory)
- svn update <file/directory> gets the latest version from the server (e.g. of common tools)