Subversion

Usage

  • Subversion存储所有版本控制的数据到一个中心版本库,作为开始,新建一个版本库:

$ svnadmin create /path/to/repos

  • 一旦你你已经准备好了数据,就可以使用svn import命令将其导入到版本库:

$ svn import /tmp/myproject file:///path/to/repos/myproject -m "initial import"

  • 从Subversion版本库里“check out”出一个myproject/trunk目录的工作拷贝:

$ svn checkout file:///path/to/repos/myproject/trunk myproject

  • 备份

(cd /path/to/hook/scripts; ./hot-backup.py ${REPOS} /path/to/backups &)

  • svn server
(/etc/services)
svn           3690/tcp   # Subversion
svn           3690/udp   # Subversion

(/etc/inetd.conf)
svn stream tcp nowait svnowner /usr/bin/svnserve svnserve -i

(checkout)
svn checkout svn://host.example.com/project1

(conf/svnserve.conf, conf/passwd)

CVS to SVN

Reference

* http://svnbook.subversion.org.cn/1.2/svn-book.html

page_revision: 0, last_edited: 1201753177|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License