woensdag 20 juni 2007

subversion setup

This is a quick subversion setup. really quick because to be honest it's my first time. Normally I only get the repository url and an account, setup done for me.

Start by downloading the latest subversion build for your system at http://subversion.tigris.org/project_packages.html.

Unzip this archive somewhere and ad the bin to your path variable.

Create your local repository with the following command
svnadmin create /path/to/repos


Next you can import your first project with the following command
svn import /tmp/project file:///path/to/repos -m "initial import"


An important note about your project structure,
subversion expects the following 3 root folders:

/tmp/project/branches/
/tmp/project/tags/
/tmp/project/trunk/


Then you can check the project out again with
svn checkout file:///path/to/repos/trunk project


All is done, you can now start importing other projects, commit changes, checkout elsewhere, etc...

Note that these examples all work locally so we can use the file:// protocol. Remotely this would be http:// or others.


how to delete a repository:
Deleting a complete repository is done by deleting the database
If you only want to delete a project or file use
svn delete -m "Deleting file 'yourfile'" file:///tmp/repos/test/yourfile


try and explain how to setup a svn server


resources
project home page: http://subversion.tigris.org/
ebook: http://svnbook.red-bean.com/en/1.1/ch01s05.html
cheat sheet: http://www.abbeyworkshop.com/howto/misc/svn01/

Geen opmerkingen:

Een reactie plaatsen