/Main_Page

::You must have ninja focus to complete your mission::NinjaFocus::

Subversion

Views:

Contents

Introduction

Subversion (SVN) is a version control program with many useful features and available on linux, macs and pc. It's very useful for maintaining and distributing programming code and configuration files.

This page lists some tip for subversion and is really just a crib sheet.

For the ultimate subversion reference, see the Subversion Book http://svnbook.red-bean.com/

Creating a Repository

$ svnadmin create <repository-name> --fs-type <fsfs|bdb>

Subversion Status Codes

  • A addition
  • C in conflict with repository
  • D deletion
  • I item is being ignored
  • M modified
  • R replaced in working copy
  • S item switched on server
  • X external definition
  • ? not under version control
  • ~ type has changed - file, directory or link
  • * newer version available on server

Subversion Commands

  • svn
  • svnversion
  • svnlook
  • svnadmin create <path> [--fs-type fsfs|bdb]
  • svndumpfilter
  • svnserve

svn Sub-commands

svn <command>

where command is one of:

  • switch
  • diff
  • merge -c <commit> <repos>
  • revert
  • log
  • commit [-m <comment>]
  • update
  • copy
  • checkout|co <repos path> <local path>
  • import <local path> <repos path> [-m <comment>]
  • add
  • rename
  • delete|rm <path>

Additional Tools

http://www.redmine.org/ - Red mine is a front end to subversion (and other version control systems) that includes a ton of other project tools like an issue tracker, wiki, gnatt charts, and account management.

http://meld.sourceforge.net/ - Meld is a very powerful graphic diff tool that works with various VCSs. It makes merging code very easy

http://www.lachoseinteractive.net/en/community/subversion/svnx/ - svnX is a Mac OS X GUI front end for the subversion client. Works very well in combination with the command line svn client.

Main Menu

Personal tools

Toolbox