u老九 - 系统光盘下载网站!

当前位置:u老九 > 系统教程 > CentOS安装使用Subversion

CentOS系统安装使用Subversion的方法(3)

时间:2015-03-30 18:03:41 作者:qipeng 来源:u老九 1. 扫描二维码随时看资讯 2. 请使用手机浏览器访问: http://m.xitongzhijia.net/article/43347.html 手机查看 评论

  vim authz

  ### This file is an example authorization file for svnserve.

  ### Its format is identical to that of mod_authz_svn authorization

  ### files.

  ### As shown below each section defines authorizations for the path and

  ### (optional) repository specified by the section name.

  ### The authorizations follow. An authorization line can refer to:

  ### - a single user,

  ### - a group of users defined in a special [groups] section,

  ### - an alias defined in a special [aliases] section,

  ### - all authenticated users, using the ‘$authenticated’ token,

  ### - only anonymous users, using the ‘$anonymous’ token,

  ### - anyone, using the ‘*’ wildcard.

  ###

  ### A match can be inverted by prefixing the rule with ‘~’。 Rules can

  ### grant read (‘r’) access, read-write (‘rw’) access, or no access

  ### (‘’)。

  [aliases]

  # joe = /C=XZ/ST=Dessert/L=Snake City/O=Snake Oil, Ltd./OU=Research Institute/CN=Joe Averag

  e

  [groups]

  # harry_and_sally = harry,sally

  # harry_sally_and_joe = harry,sally,&joe

  [/]

  # harry = rw

  # &joe = r

  # * =

  rockeng = rw

  # [repository:/baz/fuz]

  # @harry_and_sally = rw

  # * = r

  5.重启svn

  killall svnserve

  svnserve -d -r /var/svn/repositories

  6.检出:svn co svn://127.0.0.1/rock-eng

  7.添加文件:svn add 目录

  8.提交修改:svn commit

  9.删除文件但保存本地副本:svn delete --keep-local 目录

  10.忽略当前目录下的data和attachment目录

  a.svn propedit svn:ignore 。

  b.在编辑器中输入目录名,用回车分隔

  c.svn commit

  11.查看当前目录的状态:svn status

  问题1:

  svn: 无法使用外部编辑器获得日志信息;考虑设置环境变量 $SVN_EDITOR,或者使用 --message (-m) 或 --file (-F) 选项

  svn: 没有设置 SVN_EDITOR,VISUAL 或 EDITOR 环境变量,运行时的配置参数中也没有 “editor-cmd” 选项

  解决办法:

  a.vim ~/.bash_profile

  b.增加:export SVN_EDITOR=vim

  上面就是CentOS安装使用subversion的方法介绍了,包括了版本库的创建和subversion的配置,希望对你有所帮助。

标签 CentOS
分享到:

发表评论

0

没有更多评论了

评论就这些咯,让大家也知道你的独特见解

立即评论

以上留言仅代表用户个人观点,不代表u老九立场

其他版本软件

人气教程排行

Linux系统推荐

官方交流群 软件收录