2024年11月CentOS系统安装使用Subversion的方法(3)

发布时间:

  ⑴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’ aess, read-write (‘rw’ aess, or no aess

  ⒃### (‘’。

  ⒄[aliases]

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

  ⒆[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

  ⒎killall svnserve

  ⒏svnserve -d -r /var/svn/repositories

  ⒐.检出:svn co

  ⒑.添加文件:svn add 目录

  ⒒.提交修改:svn mit

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

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

  ⒕a.svn propedit svn:ignore 。

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

  ⒗c.svn mit

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

  ⒙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的配置,希望对你有所帮助。