How to use svn via ssh
Subversion 1.4.3 is installed on coutsound.ucsd.edu in /usr/bin.
SVN provides multiple configuration options to different users requirements. Here is an example of how I use it currently and suggest some readings if you have different requirements.
I am currently using "svn+ssh" to manage the repository.
Login to coutsound.ucsd.edu
Step1: Create dir and repository
$>cd ~/temp $>mkdir project1 $>cd project1 $>svnadmin create --fs-type fsfs ~/temp/project1
Step2: Import Source Code
$> svn import -m "initial import" </path/to/source/tree> file:///home/sliu/temp/project1
Step3: Check out a work directory from a remote machine
An svn client must be installed in the remote machine. (Please use the latest version.) [feng@mystere ]$ svn co svn+ssh://firstname.lastname@example.org/home/sliu/temp/project1 Password: Password: A project1/app-rc.h A project1/app-rd.h A project1/rbudp1.tcl Checked out revision 1. [feng@mystere ]$ ls project1
I am using svn to maintain multiple copies of my code at multiple hosts, so the svn+ssh style is sufficient for me. If you have other requirements, svn provides additional options which you can refer to http://svnbook.red-bean.com/nightly/en/svn-book.html#svn.serverconfig.multimethod
Access svn server under Windows
Download and use TortoiseSVN.
Subversion on-line documentation.
Upgrade Subversion to version 1.6 on CentOS
Yum won't install a version newer than 1.4. The manual install of version 1.6 works like this:
Download the following rpms (Jurgen has them):
mod_dav_svn-1.6.11-1.rhel5.x86_64.rpm neon-0.28.4-1.x86_64.rpm neon-devel-0.28.4-1.x86_64.rpm sqlite-3.5.9-2.x86_64.rpm sqlite-devel-3.5.9-2.x86_64.rpm subversion-1.6.11-1.rhel5.x86_64.rpm subversion-devel-1.6.11-1.rhel5.x86_64.rpm subversion-perl-1.6.11-1.rhel5.x86_64.rpm subversion-python-1.6.11-1.rhel5.x86_64.rpm subversion-tools-1.6.11-1.rhel5.x86_64.rpm
Install in the following order:
rpm -Uhv sqlite-3.5.9-2.x86_64.rpm rpm -Uhv sqlite-devel-3.5.9-2.x86_64.rpm yum install neon-devel
Update: Subversion 1.6 can be installed with yum. Setup yum to use rpmforge, the package is in the rpmforge-extras repo. This repo is disabled by default, install with:
yum --enablerepo=rpmforge-extras install subversion.x86_64
If there are conflicts with subversion.i386, remove that package:
yum erase subversion.i386
Then run the install again.