Title: Subversion tutorial
1- Subversion tutorial
- Dusan Vudragovic
- dusan_at_phy.bg.ac.yu
- Scientific Computing Laboratory
- Institute of Physics Belgrade, Serbia
2Subversion
- Version control system
- Concurrent Versions System (CVS)
- Used by Apache Software Foundation,
- KDE, GNOME, Free Pascal,
- FreeBSD, GCC, Python, Django,
- Ruby, Mono,
- SourceForge.net, Tigris.org
- Google Code, BountySource
- ViewVC
- https//ui.phy.bg.ac.yu/viewvc
3Recommended usage
- What is Revision?
- What is Trunks?
- What is Tag?
- What is Branch?
4SVN additional configuration
- Default editor
- User certificate .subversion/servers
- Initial project setup
- Useful parameter
export SVN_EDITORvi
groups scl ui.phy.bg.ac.yu scl ssl-client-ce
rt-file/home/dusan/.globus/usercert.p12
svn mkdir https//ui.phy.bg.ac.yu/svn/scl/ltproject
gt svn mkdir https//ui.phy.bg.ac.yu/svn/scl/ltproje
ctgt/trunk svn mkdir https//ui.phy.bg.ac.yu/svn/sc
l/ltprojectgt/tags svn mkdir https//ui.phy.bg.ac.yu
/svn/scl/ltprojectgt/branches
-m ltcommentgt
5SVN Usage (1/3)
- Importing an existing project
- Checking out a project
- Get info
- Editing and adding files
- Get a copy of the previous version
svn import ltpath_to projectgt https//ui.phy.bg.ac.
yu/svn/scl/ltprojectgt/trunk -m 'Initial import'
svn import checkout https//ui.phy.bg.ac.yu/svn/sc
l/ltprojectgt/trunk
svn info
svn status svn add ltfilenamegt svn commit -m
comment
svn checkout r xyz https//ui.phy.bg.ac.yu/svn/sc
l/ltprojectgt/trunk ltdestination_foldergt
6SVN Usage (2/3)
- Create tag
- Deleting
- Renaming
- Create branch
svn copy https//ui.phy.bg.ac.yu/svn/scl/ltprojectgt
/trunk https//ui.phy.bg.ac.yu/svn/scl/ltprojectgt/t
ags/ltprojectgt-v1.0.0.-1
svn rm ltfilename_or_dirnamegt
svn rename ltsourcegt ltdestinationgt
svn copy https//ui.phy.bg.ac.yu/svn/scl/ltprojectgt
/trunk https//ui.phy.bg.ac.yu/svn/scl/ltprojectgt/b
ranches/ltprojectgt-v1.0.0.-1
7SVN Usage (3/3)
- How to use Subversion with Eclipse
- http//subclipse.tigris.org/