[svnbook] r5813 committed - branches/1.8/zh/book/ ch06-server-configuration.xml
wuzhouhui at users.sourceforge.net
wuzhouhui at users.sourceforge.net
Sat Oct 27 09:03:37 CDT 2018
Revision: 5813
http://sourceforge.net/p/svnbook/source/5813
Author: wuzhouhui
Date: 2018-10-27 14:03:36 +0000 (Sat, 27 Oct 2018)
Log Message:
-----------
1.8/zh: translation of chapter 6 in progress
Modified Paths:
--------------
branches/1.8/zh/book/ch06-server-configuration.xml
Modified: branches/1.8/zh/book/ch06-server-configuration.xml
===================================================================
--- branches/1.8/zh/book/ch06-server-configuration.xml 2018-10-27 12:44:20 UTC (rev 5812)
+++ branches/1.8/zh/book/ch06-server-configuration.xml 2018-10-27 14:03:36 UTC (rev 5813)
@@ -7468,6 +7468,7 @@
单独的访问规则文件, 这样就不用在文件里提到仓库名.</para>
</warning>
+ <!--
<para>If you're using the <literal>SVNParentPath</literal>
directive, it's important to specify the repository names in
your sections. If you omit them, a section such as
@@ -7476,12 +7477,24 @@
repository. If you're using the <literal>SVNPath</literal>
directive, however, it's fine to provide only paths in your
sections—after all, there's only one repository.</para>
+ -->
+ <para>如果你使用了配置指令 <literal>SVNParentPath</literal>, 在访问规则
+ 文件的节名中指定仓库名就非常重要, 因为如果省略了仓库名, 例如把节名写
+ 成 <literal>[/home/dir]</literal>, 那么该节将匹配
+ <emphasis>每个</emphasis> 仓库中的 <filename>/some/dir</filename>.
+ 然而, 如果使用了配置指令 <literal>SVNPath</literal>, 那么在节名中
+ 只提供路径也是可以的—毕竟这时候只存在一个仓库.</para>
+ <!--
<para>Permissions are inherited from a path's parent directory.
That means we can specify a subdirectory with a different
access policy for Sally. Let's continue our previous
example, and grant Sally write access to a child of the branch
that she's otherwise permitted only to read:</para>
+ -->
+ <para>路径的权限继承自父目录, 这意味着我们可以为 Sally 指定一个访问
+ 策略不同的子目录. 继续我们前面的例子, 现在我们要为 Sally 授予分支中
+ 某个子目录的写权限, 而 Sally 原来只对分支拥有只读权限.</para>
<informalexample>
<programlisting>
More information about the svnbook-dev
mailing list