home » knowledge base » Subversion basics (2006-01-03)
Installing subversion under Apache:
usermod -G apache,svn apache
/home/svn: chmod g+rwx /home/svn
Backup and restore a repo:
svnadmin dump repo >repo_svn_dump; bzip2 -9 repo_svn_dump
svnadmin dump repo | bzip2 -c -9 >repo_svn_dump.bz2
Recreate a repo:
svnadmin create repo
sudo -u svn bzip2 -d -d repo.bz2 | svnadmin load repo
/etc/httpd/conf.d/repo-svn-authzfile
/etc/rc.d/init.d/httpd restart
This assumes Apache2 and a particular setup found on RedHat Enterprise.
Resolve conflicts: svn resolved $file (begs a question: why subversion doesn't do automatic conflict resolution?)
Update to a version in the past: svn update -r {2004-04-04}
Create a tag:
svn copy https://sumatrapdf.googlecode.com/svn/trunk/ https://sumatrapdf.googlecode.com/svn/tags/release-0.7 -m "Tagging release 0.7."