SCM_CVS_SVN 版本控制器

1,下载Setup-Subversion-1.6.5.msi安装包(服务器端)

2,下载TortoiseSVN-1.6.6.17493-win32-svn-1.6.6.msi安装包(客户端)

3,点击Setup-Subversion-1.6.5.msi安装包安装服务器,全部选择默认的就可以直接安装了;

4,在点击TortoiseSVN-1.6.6.17493-win32-svn-1.6.6.msi安装包安装客户端,也是全部选择默认的就可以直接安装了;

5,运行--cmd--svn,如果有信息显示,表示安装成功了;

6,运行--cmd--svn--svnadmin help,可以查看帮助;

7,创建仓库,运行--cmd--svn--svnadmin create svnsrc。说明:svnsrc是你创建的仓库的名称;

当然你可以先选择在那个盘创建仓库,比如:E盘,那么你就必须先转到E盘,在执行上面的:7的步骤;

创建好了svnsrc仓库后,这时我们可以到E盘查看该文件:svnsrc目录下面包含:

conf--配置文件

db--真正存储版本的地方

hooks--回调函数

locks--加锁

format--版本

README.txt

当我们建立好了仓库以后,还要在库上做一些权限控制:比如说谁能访问,谁不能访问

8,权限控制设置

conf文件下面--svnserve.conf文件,打开:

### 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 http://subversion.tigris.org/ 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 directory containing
### this configuration file.
### If SASL is enabled (see below), this file will NOT be used.
### 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 the
### directory containing this file.  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

[sasl]
### This option specifies whether you want to use the Cyrus SASL
### library for authentication. Default is false.
### This section will be ignored if svnserve is not built with Cyrus
### SASL support; to check, run 'svnserve --version' and look for a line
### reading 'Cyrus SASL authentication is available.'
# use-sasl = true
### These options specify the desired strength of the security layer
### that you want SASL to provide. 0 means no encryption, 1 means
### integrity-checking only, values larger than 1 are correlated
### to the effective key length for encryption (e.g. 128 means 128-bit
### encryption). The values below are the defaults.
# min-encryption = 0
# max-encryption = 256

 

---------------------------------Hongten-------------------------------------

红色标记的是:有哪些人用那些密码可以访问我的仓库;

 

password文件

### This file is an example password file for svnserve.
### Its format is similar to that of svnserve.conf. As shown in the
### example below it contains one section labelled [users].
### The name and password for each user follow, one account per line.

[users]
# harry = harryssecret
# sally = sallyssecret
u1=p1

---------------------------------Hongten-------------------------------------

我们添加的用户:u1

密码是:p1

9,启动服务器:

运行--cmd--svnserve -d -r E:svnsrc

这种方式运行起来后,cmd窗口不能关闭;

这是服务器就配置好了;

---------------------------------Hongten-------------------------------------

10,现在来做客户端了:

创建一个文件:svnClient,进入文件:右键--TortoiseSVN--Repo-brower--svn://localhost--ok

再创建一个文件:svnClient1,进入文件:右键--TortoiseSVN--Repo-brower--svn://localhost--ok

那么这样就关联好了两个客户端了。

---------------------------------Hongten-------------------------------------

 下载:eclipse-java-galileo-win32.zip开发工具;

下载:subeclipse-site-1.6.5.zip

在svnClient文件夹中解压;启动eclipse,help--Install New Software--Add--name:subclipse;url=subeclipse-site-1.6.5.zip的存放目录;

如:E:/Studied video/subeclipse-site-1.6.5.zip

--ok--ok;然后是 重启eclipse;

Window--show View--other..--SVN--SVN资源库--右键--新建资源库--资源库位置url=svn://localhost--finish;

这样就做好了客户端的所有配置了。

 

posted @ 2011-10-04 13:43  Hongten  阅读(2318)  评论(1编辑  收藏  举报
Fork me on GitHub