EaBIM一直以来积极响应国家“十二五”推进建筑业信息化的号召,对建筑领域的信息技术开展深入技术交流和探讨!致力于打造“BIM-建筑师-生态技术”三位一体综合资源交流共享平台,希望为BIM与可持续设计理念及技术的普及做出微小的贡献!!!

EaBIM

 找回密码
 注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

搜索
查看: 560|回复: 2
打印 上一主题 下一主题

[开发管理] Subversion和TortoiseSVN构建

[复制链接]

1514

主题

7465

帖子

1万

积分

admin

Rank: 10Rank: 10Rank: 10Rank: 10Rank: 10Rank: 10Rank: 10Rank: 10Rank: 10Rank: 10

积分
12404

社区QQ达人

跳转到指定楼层
楼主
发表于 2014-1-10 14:44:58 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
1.下载Subversion的window安装版本svn-1.4.6-setup.exe
http://subversion.tigris.org/
http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=8100


2.下载TortoiseSVN的TortoiseSVN-1.5.2.13595-win32-svn-1.5.1.msi版本
http://tortoisesvn.net/
http://tortoisesvn.net/downloads
3.安装subversion
双击svn-1.4.6-setup.exe,一路next完成安装。
设置环境变量,将subversion对bin设置到path中。如:Dundefinedrogram FilesSubversionbin
4.安装TortoiseSVN
双击TortoiseSVN-1.5.2.13595-win32-svn-1.5.1.msi,一路next完成安装。
view plaincopy to clipboardprint?
SVN的安装和配置 (工具)
1. Windows 2003 sp1
2. svn-1.3.0-setup.exe SVN服务端软件
3. SVNService.exe 添加到Windows服务需要的工具
4. TortoiseSVN-1.4.0.7501-win32-svn-1.4.0.msi SVN客户端软件
5. LanguagePack-1.4.0.7501-win32-zh_CN.exe SVN客户端软件的中文语言包
相关下载:
1.Subversion
http://subversion.tigris.org
2.客户端软件TortoiseSVN
http://tortoisesvn.tigris.org
Eclipse 下使用的插件,需要在线更新
更新地址: http://subclipse.tigris.org/update_1.0.x
安装指南: http://subclipse.tigris.org/install.html
安装SVN服务器
1. 安装服务器软件
2. 将SVN添加到Windows服务
1. 新建一个文件夹用来存放库文件 c:\SVN
2. 运行命令:SVNService -install -d -r c:\svn 安装 Windows 服务
3. 通过Windows服务管理平台启动SVN服务
4. 其它命令
1. 改变服务设置:
运行命令:SVNService -setup -d -r <newsvnroot>
在实际操作中,<newsvnroot>代表与SubVersion服务启动时不同的电子仓库目录.
2. 删除服务:
运行命令:SVNService -remove
SVN的安装和配置 (工具)
1. Windows 2003 sp1
2. svn-1.3.0-setup.exe SVN服务端软件
3. SVNService.exe 添加到Windows服务需要的工具
4. TortoiseSVN-1.4.0.7501-win32-svn-1.4.0.msi SVN客户端软件
5. LanguagePack-1.4.0.7501-win32-zh_CN.exe SVN客户端软件的中文语言包
相关下载:
1.Subversion
http://subversion.tigris.org
2.客户端软件TortoiseSVN
http://tortoisesvn.tigris.org
Eclipse 下使用的插件,需要在线更新
更新地址: http://subclipse.tigris.org/update_1.0.x
安装指南: http://subclipse.tigris.org/install.html
安装SVN服务器
1. 安装服务器软件
2. 将SVN添加到Windows服务
1. 新建一个文件夹用来存放库文件 c:\SVN
2. 运行命令:SVNService -install -d -r c:\svn 安装 Windows 服务
3. 通过Windows服务管理平台启动SVN服务
4. 其它命令
1. 改变服务设置:
运行命令:SVNService -setup -d -r <newsvnroot>
在实际操作中,<newsvnroot>代表与SubVersion服务启动时不同的电子仓库目录.
2. 删除服务:
运行命令:SVNService -remove

5.创建svn容器Repository
在硬盘上任意位置创建一文件夹,如D:svnRepository,在文件夹上右键
TortoiseSVN->Create repository here
创建成功后将在D:svnRepository下生成一系列文件。
6.配置容器的访问权限
在容器的目录下D:svnRepository的conf中,用记事本打开svnserve.conf文件,找到
# anon-access = read
# auth-access = write
# password-db = passwd
并去掉注释#
注意,去掉注释后,不要留下空格,保持每行顶格,切记!!!
效果如下:
view plaincopy to clipboardprint?
### 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.
# authzauthz-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
### 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
配置访问用户列表,用户名加密码
记事本打开该目录下的文件passwd
去掉
# harry = harryssecret
# sally = sallyssecret
的注释#,同意注意每行要顶格,开头也不能有空格。
说明harry = harryssecret表示:用户名=密码
当然也可以自己增加,如gary=gary
最好效果如下:
view plaincopy to clipboardprint?
### 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
gary=gary
### 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
gary=gary
7.启动Subversion
因为之前设置了环境变量path= Dundefinedrogram FilesSubversionbin;因此打开cmd,直接运行命令:svnserve -d -r D:svnRepository
这样Subversion服务器就假设好了。
8.向容器添加需版本控制的文件(也可以远程,只需url为ip就行)
在硬盘上任意位置,右键需要上传的文件的上级文件夹,TortoiseSVN->Import…
此处为了测试,创建文件夹D:importFiles,里面放一doc文件test.doc,即要将test.doc上传到svn中去。右键importFiles,TortoiseSVN->Import…,输入容器的url:
svn://localhost/svnRepository
输入用户名和密码:
就将test.doc文件上传到svn容器了
9.从容器获得test.doc文件(也可以远程,只需url为ip就行)
在任意位置,某文件上右键D:checkOutFiles,点击SVN Checkout…
输入url即可
10.完成
这样就完成的部署和存取,修改相应的文件,提交即可,注意始终保持Subversion的运行。
注意,在第8步中会报错“期望文件系统格式“2”;发现格式“3””
原因是TortoisSVN的版本过高,或与Subversion不匹配。
应该换成低版本的TortoisSVN 用TortoiseSVN-1.4.8.12137-win32-svn-1.4.6.msi
即应该为svn-1.4.6-setup.exe和TortoiseSVN-1.4.8.12137-win32-svn-1.4.6.msi的组合才行,
步骤和之前的一样,只是在第6步中的svnserve.conf文件中没有后面的内容
view plaincopy to clipboardprint?
[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
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
收藏收藏 转播转播 分享分享 分享淘帖 支持支持 反对反对
工作时间:工作日的9:00-12:00/13:30-18:00,节假日不在线,请勿留言

28

主题

927

帖子

1777

积分

BIM经理

Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6

积分
1777
2F
发表于 2014-5-19 14:39:51 | 只看该作者
本帖最后由 Aaronyee 于 2015-11-2 19:10 编辑

路过!!! 帮顶…… 皇_冠现_金网:hg88094.com首存送58元.手机可投3注任何游戏满1000送1088彩_金3体育半场结算六_合48倍3各种彩票游戏
*滑块验证:
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|EaBIM网 ( 苏ICP备2020058923号-1  苏公网安备32011502011255号

GMT+8, 2024-11-23 20:23

Powered by Discuz! X3.2 Licensed

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表