SVN

SmartSVN

创建版本库

  1. 使用命令行工具创建版本库

    1
    2
    $ mkdir SVNRepository
    $ svnadmin create --fs-type fsfs SVNRepository
  2. 修改 ${SVNRepository}\conf\svnserve.conf 配置文件

    1
    2
    # password-db = passwd
    password-db = passwd
  3. 修改 ${SVNRepository}\conf\passwd 配置文件

    1
    2
    3
    4
    [users]
    # harry = harryssecret
    # sally = sallyssecret
    admin = admin
  4. 执行以下命令启动subversion

    1
    $ svnserve -d -r SVNRepository
  5. 在${SVNRepository}目录下创建trunk/branches/tags三个目录并Import到版本库(如 D:\SVNRepository)中

    1
    2
    3
    4
    5
    6
    7
    $ cd SVNRepository
    $ mkdir trunk
    $ svn import -m "New import" trunk file:///D:/SVNRepository/trunk
    $ mkdir branches
    $ svn import -m "New import" branches file:///D:/SVNRepository/branches
    $ mkdir tags
    $ svn import -m "New import" tags file:///D:/SVNRepository/tags