SVN on Mac OSX

From TechWiki

Jump to: navigation, search

Contents

Installing Subversion (SVN) on mac osx

1. download the subversion binary from http://www.collab.net/downloads/community/

2 . Install it

3. IF you want a GUI client for subversion download svnX from http://www.lachoseinteractive.net/en/community/subversion/svnx/download/ .

Configure the location where the svn binary is located. If you do a normail installation in step 1, the default will work just fine.

Using svn

There are Various ways of using SVN once it's installed :

Command Line

Basic SVN commands :

  svn co <<path of code in svn>> - checks out code into the current directory 
  svn list <<svn path>>          - lists out the contents of the directory mentioned in path
  svn add <<filename>>           - adds file to svn
  svn rm <<filename>>            - removes file form svn
  svn commit                     - commits all your changes to code

Commit Legend :

A - Added

D - Deleted

? - New file in directory which is not under version control

! - Previously there was a file and now it's not there

SVN in finder

1. open a new finder window

2. navigate to our user folder

3. right-click/control-click and select New Folder from the contextual menu, and name it checkouts

4. navigate to checkouts, and right-click/control-click and select Checkout from the Subversion contextual menu.

5. You will be prompted to specify the URI of the repository, enter it and make sure that the "Checkout to local path" is correct

6. click Checkout, sit back and relax.


SVN using svnX

There will be 2 windows in the software

1. working copies - code you are working on, and is located on local

2. repositories - on the svn server

3. various svn options are just clicks on various buttons.



!! WARNING : DO NOT MESS WITH THE .SVN FILES IN THE WORKING COPY DIRECTORIES !!

Personal tools