Difference between revisions of "Working with the development version"

From VDrift
Jump to: navigation, search
(Clean up Mac section.)
Line 1: Line 1:
VDrift's code is kept in a Subversion repository. To get the development version, you must "check out" the code from this repository.
+
VDrift's code is kept in a Git repository on GitHub. To get the development version, you must "check out" the code from this repository.
  
 
==Browsing the repositories==
 
==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.  
+
VDrift's source on the GitHub web site is at https://github.com/VDrift/vdrift/. 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==
 
==Checking out the code==
Line 8: Line 8:
  
 
===Linux/Unix===
 
===Linux/Unix===
Install a svn ([http://subversion.tigris.org/ 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:  
+
Install a git ([http://git-scm.com/ Git]) 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  
+
  git clone git://github.com/VDrift/vdrift.git vdrift
  
 
It will download the current development version in the subfolder vdrift.  Next, [[Getting_the_development_version#Checking_out_the_data|check out the data]].
 
It will download the current development version in the subfolder vdrift.  Next, [[Getting_the_development_version#Checking_out_the_data|check out the data]].
  
 
===Windows===
 
===Windows===
The best solution for Windows is to download [http://tortoisesvn.net/ 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.  Next, [[Getting_the_development_version#Checking_out_the_data|check out the data]].
+
The best solution for Windows is to download [http://code.google.com/p/msysgit/ MSysGit]. After installing it, open Windows explorer and go to the directory where you want to download the VDrift development version. Right-click and click Git GUI Here. Select Open Existing Repository. In the next screen you need to fill in the URL of the repository which is git://github.com/VDrift/vdrift.git. Simply click OK, and the development version will be downloaded.  Next, [[Getting_the_development_version#Checking_out_the_data|check out the data]].
  
 
===Mac OS X===
 
===Mac OS X===
This is the same as working with [[Getting_the_development_version#Linux/Unix|Linux/Unix]] however if you are running Mac OS X 10.4 or older you will need to obtain an SVN client:
+
This is the same as working with [[Getting_the_development_version#Linux/Unix|Linux/Unix]] however you will need to obtain a git client.  
* If you are a [http://fink.sourceforge.net/ 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/
 
 
Once you have a working SVN client see the [[Getting_the_development_version#Linux/Unix|Linux/Unix]] instructions.
 
Once you have a working SVN client see the [[Getting_the_development_version#Linux/Unix|Linux/Unix]] instructions.
  
Line 27: Line 25:
 
  cd /home/user/code
 
  cd /home/user/code
 
  svn co https://vdrift.svn.sourceforge.net/svnroot/vdrift/vdrift-data data
 
  svn co https://vdrift.svn.sourceforge.net/svnroot/vdrift/vdrift-data data
If you are using the Tortoise SVN client, see the documentation on the Tortoise SVN website for more information on how to check out a repository.
+
If you are using the Tortoise SVN client, see the documentation on the Tortoise SVN [http://tortoisesvn.tigris.org/ website] for more information on how to check out a repository.
  
 
==Working with the repository==
 
==Working with the repository==
 
===Updating===
 
===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
+
Once the reposotory has been checked out, it can be updated without downloading the entire thing again. For command line git, use the command
  svn update
+
  git pull
 
to check for updates and apply them.
 
to check for updates and apply them.
  
 
===Checking in changes===
 
===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.
+
You can request a VDrift developer to incorporate your changes by initiating a GitHub pull request. See this documentation for more info: http://help.github.com/send-pull-requests/
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===
 
===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:
 
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''
+
  git add ''filename''
Where ''filename'' is the file you wish to add. Similarly you may remove files that are no longer needed with <code>svn del ''filename''</code>.
+
Where ''filename'' is the file you wish to add. Similarly you may remove files that are no longer needed with <code>git rm ''filename''</code>.
  
  

Revision as of 10:58, 3 July 2011

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

Browsing the repositories

VDrift's source on the GitHub web site is at https://github.com/VDrift/vdrift/. 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 git (Git) 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:

git clone git://github.com/VDrift/vdrift.git vdrift

It will download the current development version in the subfolder vdrift. Next, check out the data.

Windows

The best solution for Windows is to download MSysGit. After installing it, open Windows explorer and go to the directory where you want to download the VDrift development version. Right-click and click Git GUI Here. Select Open Existing Repository. In the next screen you need to fill in the URL of the repository which is git://github.com/VDrift/vdrift.git. Simply click OK, and the development version will be downloaded. Next, check out the data.

Mac OS X

This is the same as working with Linux/Unix however you will need to obtain a git client. Once you have a working SVN client see the Linux/Unix instructions.

Checking out the data

The data set is currently only available from the SourceForge SVN. Get it from https://vdrift.svn.sourceforge.net/svnroot/vdrift/vdrift-data to the vdrift/data from svn.vdrift.net. If you are using a command-line SVN client and have the VDrift repository checked out in a directory called /home/user/code, you would do this:

cd /home/user/code
svn co https://vdrift.svn.sourceforge.net/svnroot/vdrift/vdrift-data data

If you are using the Tortoise SVN client, see the documentation on the Tortoise SVN website for more information on how to check out a repository.

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 git, use the command

git pull

to check for updates and apply them.

Checking in changes

You can request a VDrift developer to incorporate your changes by initiating a GitHub pull request. See this documentation for more info: http://help.github.com/send-pull-requests/

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:

git add filename

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