Clifford Wolf, February 12, 2007 SubMaster – p. 1/16
The Subversion Version Control System
An introduction for new users
Clifford Wolf
ROCK Linux - http://www.rocklinux.org/ Csync2 - http://oss.linbit.com/csync2/ SPL - http://www.clifford.at/
The Subversion Version Control System An introduction for new users - - PowerPoint PPT Presentation
The Subversion Version Control System An introduction for new users Clifford Wolf ROCK Linux - http://www.rocklinux.org/ Csync2 - http://oss.linbit.com/csync2/ SPL - http://www.clifford.at/ Clifford Wolf, February 12, 2007 SubMaster p.
Clifford Wolf, February 12, 2007 SubMaster – p. 1/16
ROCK Linux - http://www.rocklinux.org/ Csync2 - http://oss.linbit.com/csync2/ SPL - http://www.clifford.at/
Introduction
Using Subversion References Clifford Wolf, February 12, 2007 SubMaster – p. 2/16
Introduction
Using Subversion References Clifford Wolf, February 12, 2007 SubMaster – p. 3/16
■ Subversion is a a version control system ■ The entire history of a project including all branches is stored
■ A Subversion Repository can also be seen as a filesystem
■ Pleople can check out files or directories from a Subversion
■ Some changes can be done directly on the repository
Introduction
Using Subversion References Clifford Wolf, February 12, 2007 SubMaster – p. 4/16
■ Subversion Repositories can be accessed thru the
■ The tool for creating and maintaining the database behind a
■ The tool for working with the Subversion Repository and
■ The calling convention for ’svn’ is simmilar to the calling
Introduction Using Subversion
References Clifford Wolf, February 12, 2007 SubMaster – p. 5/16
Introduction Using Subversion
References Clifford Wolf, February 12, 2007 SubMaster – p. 6/16
■ Creating the repository itself is easy:
■ If the repository should be accessable thru HTTP/WebDAV
■ If the repository should be accessable thru the Subversion
Introduction Using Subversion
References Clifford Wolf, February 12, 2007 SubMaster – p. 7/16
■ Using the tool svn is very simmilar to using cvs. ■ A Working copy can be created with:
■ Note that no equivalent to $CVSROOT exists. ■ Within the working copy, every directory has a .svn
Introduction Using Subversion
References Clifford Wolf, February 12, 2007 SubMaster – p. 8/16
■ Modifying files: ◆ Just edit them as usual with your favorite editor ◆ Note that Subversion is using binary deltas and has good
■ Adding files: ◆ First create the new file as usual ◆ Then execute svn add filename ■ Removing files: ◆ Just execute svn rm filename ◆ The file will automatically removed by svn
Introduction Using Subversion
References Clifford Wolf, February 12, 2007 SubMaster – p. 9/16
■ Moving/renaming files: ◆ Using svn mv instead of mv ■ Copying files: ◆ Using svn cp instead of cp ■ Making changes without a working copy: ◆ Most operations can also be performed directly on the
◆ svn copy -m "Commit message" \
Introduction Using Subversion
References Clifford Wolf, February 12, 2007 SubMaster – p. 10/16
■ Commiting changes made in the working copy:
■ Listing status (modified, etc) of files in working copy:
■ Bringing changes from the repository into the working copy:
Introduction Using Subversion
References Clifford Wolf, February 12, 2007 SubMaster – p. 11/16
■ Subversion has no explicit support for branching. ■ But it has support for copying directories in O(1). ■ Creating a branch is just the same as creating a copy:
■ Merging changes from somewhere else to working copy:
■ A “tagged version” is also just a copy. It just never gets
Introduction Using Subversion References
Clifford Wolf, February 12, 2007 SubMaster – p. 12/16
Introduction Using Subversion References
Clifford Wolf, February 12, 2007 SubMaster – p. 13/16
■ The command svn help lists all subcommands for svn:
■ The command svn help subcommand gives a detailed
Introduction Using Subversion References
Clifford Wolf, February 12, 2007 SubMaster – p. 14/16
■ The command svnadmin help does it for svnadmin:
■ The command svnadmin help subcommand gives a
■ The Subversion Handbook is a great Subversion tutorial:
Introduction Using Subversion References
Clifford Wolf, February 12, 2007 SubMaster – p. 15/16
■ The Subversion Handbook:
■ The Subversion Homepage:
■ The SubMaster Homepage:
Introduction Using Subversion References
Clifford Wolf, February 12, 2007 SubMaster – p. 16/16
■ SVK: A decentralized system based on Subversion
■ Transvn: A patch-scripts clone based on Subversion
■ SVM: Mirror Remote Subversion Repository to local