Svn

From TLUGWiki

Jump to: navigation, search

Subversion, or svn for short, is a newish version control system. It is similar to cvs in principle but kicks ass in every possible way.

Contents

[edit] What is version control

Version control is simply the process of keeping track of changes. Each change can be considered a version, thus keeping track of changes between versions, or version control. I guess you can also see this as "change control", albeit that change control is something different (think corporates, beaurocracy and lots of paperwork).

[edit] Why svn?

Well, because it's one of the best version control systems out there, has support for both UNIX and Windows and it just works. Additionally svn has much less space requirements than cvs.

[edit] Different transport methods

svn+ssh://
file://
http[s]?://
rsh://

[edit] How to create a svn repository

need info on svnadmin create, as well as svn import.

An explanation of trunk/, tags/ and branches/ is probably also a good idea.

[edit] Checking out your repository

how to use the svn checkout command.

[edit] Updating your local copy from the repository

svn update

[edit] Committing changes

svn commit

[edit] Viewing the changelog

svn log

[edit] Getting help

svn help
svn help co

yea, i got lazy. Someone, please fill in the blanks...

[edit] Creating tags/versions

svn update
svn copy . ${repo_uri}/tags/name-version -m "name-version"

[edit] Exporting code

svn export trans://path/to/repository [destination]
Personal tools