Chinaunix首页 | 论坛 | 博客
  • 博客访问: 233039
  • 博文数量: 49
  • 博客积分: 4036
  • 博客等级: 上校
  • 技术积分: 470
  • 用 户 组: 普通用户
  • 注册时间: 2006-10-12 09:16
个人简介

Lazarus FireBird ZEOSDBO

文章分类

全部博文(49)

文章存档

2017年(1)

2015年(1)

2010年(3)

2009年(3)

2008年(19)

2007年(22)

我的朋友
最近访客

分类: 项目管理

2007-07-19 15:19:57

SVN配置使用笔记
2008-03-28
    SVN使用的使用有过一段时间了,大概停了半年没用了,在苏州的公司里仔细研究了,现在差不多又不记得了所以想把他整理出来,以后也容易回想起来些。
    这里没有使用Apache服务器,单纯的使用更简单的SVNSERVE在XP环境中使用:
 
1, 从Subversion.tigris.org下载最新的版本,我这里使用的是svn-1.4.6-setup.exe安装好。
 
2, 从tortoisesvn.net下载最新的客户端版本
  
   我使用的是TortoiseSVN 1.4.5, Build 10425 - 32 Bit。
 
3, 重起电脑后这时SVNSERVE还不是系统服务,所以使用以下命令加入系统服务让他自动运行:
   sc create svnserve binpath= "d:\svn\bin\svnserve.exe --service --root d:\svn" displayname= "Subversion" depend= tcpip start= auto
   大家可以看到binpath参数为svnserve.exe文件服务所在路径;
             --root 后面是仓库的路径;
             displayname是系统服务显示的名称。
 
4, 建立版本仓库
   (1)CMD 命令行创建: svnadmin create d:\svn\scripts
   (2) 建立空目录 d:\svn\scripts 然后在scripts文件夹上“右键->TortoiseSVN->Create Repository here...”即可。
 
5, 仓库我已经建好了的,所以只要使用svn客户端url使用 svn://localhost/scripts
 
#########################################################
在用户权限配置文件authz中有三个用户与两个项目分别对应的权限:
[groups]
g_system = admin
g_user = test
g_guest = guest
[/]
@g_system = rw
########################
# forms
[forms:/trunk]
@g_system = rw
* = r
[forms:/branch]
@g_system = rw
@g_user = rw
* = r
[forms:/tag]
@g_system = rw
###################
# scripts
[scripts:/trunk]
@g_system = rw
* = r
[scripts:/branch]
@g_system = rw
@g_user = rw
* = r
[scripts:/tag]
@g_system = rw
#########################################################

   在passwd文件中对应的是用户口令
[users]
admin = admin
test = test
guest = guest
#########################################################
   这个配置文件是权限zuthz与passwd所在的路径,可以统一项目权限,也可以单独为每个项目配置。
### This file controls the configuration of the svnserve daemon, if you
### use it to allow access to this repository.  (If you only allow
### access through http: and/or file: URLs, then this file is
### irrelevant.)
### Visit for more information.
[general]
### These options control access to the repository for unauthenticated
### and authenticated users.  Valid values are "write", "read",
### and "none".  The sample settings below are the defaults.
anon-access = read
auth-access = write
### The password-db option controls the location of the password
### database file.  Unless you specify a path starting with a /,
### the file's location is relative to the conf directory.
### Uncomment the line below to use the default password file.
password-db = passwd
### The authz-db option controls the location of the authorization
### rules for path-based access control.  Unless you specify a path
### starting with a /, the file's location is relative to the conf
### directory.  If you don't specify an authz-db, no path-based access
### control is done.
### Uncomment the line below to use the default authorization file.
authz-db = authz
### This option specifies the authentication realm of the repository.
### If two repositories have the same authentication realm, they should
### have the same password database, and vice versa.  The default realm
### is repository's uuid.
# realm = My First Repository
#########################################################
2007-07-19
相关网络资源:
 
 
 
 
 
 
 

 
2009年03月24日
   SVN:版本更新至
   svnadmin,版本 1.6.0 (r36650)
   编译于 Mar 21 2009,10:29:03
版权所有 (C) 2000-2009 CollabNet。
Subversion 是开放源代码软件,请参阅 站点。
此产品包含由 CollabNet() 开发的软件。
下列版本库后端(FS) 模块可用:
* fs_base : 模块只能操作BDB版本库。
* fs_fs : 模块与文本文件(FSFS)版本库一起工作。
 
 
 
阅读(1611) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2008-05-21 22:36:22

Eclipse 可在线安装。 在线安装svn插件--菜单栏 Help-- Find and Install-- 按new Remote Site, Name填 svn , URL填http://subclipse.tigris.org/update 一直next到finished为止