Working with the development version

From VDrift
Revision as of 08:35, 4 August 2007 by Venzon (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

VDrift's code is kept in a Subversion repository. To get the development version, you must "check out" the code from this repository.

Browsing the repositories

There is a VDrift SVN web site at http://svn.vdrift.net/. Here you may browse the VDrift repositories and even download single files. This is very useful for examining changes between different revisions, in a user-friendly manner.

Checking out the code

If you want to do much work on VDrift you'll need to check out an entire copy of the development tree.

Linux/Unix

Install a svn (Subversion) client. If you are using a Linux distribution you can search for it in the package manager. When you have installed it you need to open a terminal and run the following code:

svn checkout http://svn.vdrift.net/repos/vdrift/trunk vdrift 

It will download the current development version in the subfolder vdrift.

Windows

The best solution for Windows is to download TortoiseSVN. After installing it, open Windows explorer and go to the directory where you want to download the VDrift development version. Right-click and click SVN checkout. In the next screen you need to fill in the URL of the repository which is http://svn.vdrift.net/repos/vdrift/trunk. Simply click OK, and the development version will be downloaded.

Mac OSX

This is the same as working with Linux/UNIX as above however Mac OSX does not ship with a SVN client from Apple. You will need to obtain an SVN client.

If you are a Fink user information about the latest Fink packages can be found here: http://pdb.finkproject.org/pdb/package.php/svn. If you want to download a binary version of the SVN client go here: http://metissian.com/projects/macosx/subversion/.

If you are running on a Macintosh with an Intel processor make sure that you download the universal binary version of the SVN client. PowerPC exclusive binaries will not execute on an Intel based Macintosh.

Once you have a working SVN client see the Linux/UNIX instructions at the top of this page.

Checking out the data

The data set is currently only available from the SourceForge SVN. Get it with "svn co https://vdrift.svn.sourceforge.net/svnroot/vdrift vdrift" and link vdrift-data to the vdrift/data from svn.vdrift.net

Working with the repository

Updating

Once the reposotory has been checked out, it can be updated without downloading the entire thing again. For command line SVN, use the command

svn update

to check for updates and apply them.

Checking in changes

If you have been authorized as a VDrift developer and given a login for the repository, you may check in the changes to the repository. Subversion collects information on all the changes you make, so all you have to do is issue the command.

svn commit

Please remember to always add a commit message. This should be a summary of the changes you made. It helps let the other developers know what you've done, and also helps when writing change logs at release time.

Adding and removing files

Every file you introduce to the checkout on your computer is not automatically added to the repository. First you must add it:

svn add filename

Where filename is the file you wish to add. Similarly you may remove files that are no longer needed with svn del filename.