[svnbook] r5561 committed - branches/1.8/zh/book/ch05-repository-admin.xml
wuzhouhui at users.sourceforge.net
wuzhouhui at users.sourceforge.net
Sun Dec 31 05:54:32 CST 2017
Revision: 5561
http://sourceforge.net/p/svnbook/source/5561
Author: wuzhouhui
Date: 2017-12-31 11:54:32 +0000 (Sun, 31 Dec 2017)
Log Message:
-----------
1.8/zh: translation of chapter 5 in progress
Modified Paths:
--------------
branches/1.8/zh/book/ch05-repository-admin.xml
Modified: branches/1.8/zh/book/ch05-repository-admin.xml
===================================================================
--- branches/1.8/zh/book/ch05-repository-admin.xml 2017-12-31 01:51:16 UTC (rev 5560)
+++ branches/1.8/zh/book/ch05-repository-admin.xml 2017-12-31 11:54:32 UTC (rev 5561)
@@ -1024,6 +1024,7 @@
<filename>.exe</filename>, 批处理文件用 <filename>.bat</filename>.
</para>
+ <!--
<para>Subversion executes hooks as the same user who owns the
process that is accessing the Subversion repository. In most
cases, the repository is being accessed via a Subversion
@@ -1036,7 +1037,16 @@
In other words, be alert to potential permission-related
problems that could prevent the hook from performing the tasks
it is designed to perform.</para>
+ -->
+ <para>Subversion 执行钩子时的用户身份, 和访问仓库的进程的所有者的身份
+ 是相同的, 在大多数情况下, 仓库经由一个 Subversion 服务器进程进行访问,
+ 因此执行钩子的用户身份和 Subversion 服务器进程的所有者是一致的. 为
+ 了能让这个用户执行钩子, 操作系统必须允许该用户执行钩子脚本, 这还意味
+ 着将被钩子直接或间接访问到的程序或文件 (包括 Subversion 仓库里的文件),
+ 都是以该用户的身份进行访问. 总之, 要注意与权限有关的问题可能会导致
+ 钩子无法正常工作.</para>
+ <!--
<para>There are several hooks implemented by the Subversion
repository, and you can get details about each of them in
<xref linkend="svn.ref.reposhooks" />. As a repository
@@ -1049,6 +1059,13 @@
to determine which users are permitted to commit
changes to your repository, you don't need to do this
sort of access control via the hook system.</para>
+ -->
+ <para>Subversion 目前支持多种钩子, 详细的信息见 <xref
+ linkend="svn.ref.reposhooks" />. 作为一个仓库管理员, 你需要决定仓库
+ 应该实现哪些钩子 (通过提供具有适当名字与权限的钩子文件), 以及如何实现.
+ 在做这个决定时, 始终在心里面记着仓库的部署方式, 比如说如果你是通过服务
+ 器配置来决定哪些用户可以向仓库提交修改, 那就没必要再在钩子里实现相同的
+ 访问权限控制.</para>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<sect3 id="svn.reposadmin.hooks.configuration">
More information about the svnbook-dev
mailing list