svn import

来源:互联网 发布:talkback是什么软件 编辑:程序博客网 时间:2024/04/30 03:31

需要的软件

apr,postgresql, sqlite, apr-util, neon, subversion

ipm -ivh*.rpm安装

 1. 创建库文件所在的目录 (svnroot用户进行下面的操作)
# mkdir /home/svnroot/repository
2. 创建仓库"test"
# /usr/bin/svnadmin create /home/svnroot/repository/test

3. 导入

./svn import /root/src/ file:///repository/test/-m "initial import"

3. 启动svnserver

# svnserve-d -r /home/svnroot/repository

svn server

修改启动方式:使用ssh 隧道方式

#cd/usr/bin

#mdsvnserve svnserve.bin

#touchsvnserve

在svnserve中添加

#!/bin/sh

exec/usr/bin/svnserve.bin -r /hom/svn "$@"

4.svn://works, bug svn+ssh:// says No repository found

  Theurl structure is different - ssh+svn behaves exactly like file:///so the path needs to be the actual filepath of the repository, not the svnrelative path

5. linux下"没有设置 SVN_EDITOR...."错误解决方法  

exportSVN_EDITOR=vim

 

6. 建好仓库后如 test

    1.将tmp下的导入,建立了trunk,branches,tags

    svn import/root/tmp/ file:///home/svn/test/ -m "initial import"

    2.改动conf下的svnserver文件,使用authz-db=authz认证。修改authz,添加认证群组

    3.修改db目录的所有组,增加组的写权限

原创粉丝点击