[svnbook] r5362 committed - branches/1.8/zh/book/ch03-advanced-topics.xml

wuzhouhui at users.sourceforge.net wuzhouhui at users.sourceforge.net
Tue Jul 18 08:53:27 CDT 2017


Revision: 5362
          http://sourceforge.net/p/svnbook/source/5362
Author:   wuzhouhui
Date:     2017-07-18 13:53:26 +0000 (Tue, 18 Jul 2017)
Log Message:
-----------
Branch 1.8/zh: translation of chapter 3 in progress

Modified Paths:
--------------
    branches/1.8/zh/book/ch03-advanced-topics.xml

Modified: branches/1.8/zh/book/ch03-advanced-topics.xml
===================================================================
--- branches/1.8/zh/book/ch03-advanced-topics.xml	2017-07-17 12:58:28 UTC (rev 5361)
+++ branches/1.8/zh/book/ch03-advanced-topics.xml	2017-07-18 13:53:26 UTC (rev 5362)
@@ -2778,6 +2778,7 @@
           <filename>foo.cpp</filename> 上.</para>
       </warning>
 
+    <!--
       <para>A final note on <literal>svn:auto-props</literal>.  This
         property (along with the similar
         <literal>svn:global-ignores</literal>, see
@@ -2784,7 +2785,7 @@
         <xref linkend="svn.advanced.props.special.ignore"/>)
         only provides a <emphasis>recommendation</emphasis> to clients
         that understand the meaning of the property.  Older clients will
-        ignore these properties, the <option>--no-auto-props</option>
+        ignore these properties, the <option>- -no-auto-props</option>
         option will disregard them, a user might manually change or remove
         automatic properties after they have been set—there are
         numerous ways in which the recommended properties contained in
@@ -2795,25 +2796,48 @@
         rejecting commits which are non-compliant in this fashion.
         (See <xref linkend="svn.reposadmin.hooks"/> for more about
         hook scripts.)</para>
+    -->
+      <para><literal>svn:auto-props</literal> 最后一个需要注意的地方是它 (以
+        以及类似的 <literal>svn:global-ignores</literal>, 见
+        <xref linkend="svn.advanced.props.special.ignore"/>) 只是向理解属性
+        的客户端工具提供了一个建议, 较老的客户端会忽略这些属性, 选项
+        <option>--no-auto-props</option> 会忽略它们, 用户可能会选择手动地修改
+        或删除自动属性—有很多方法可以旁路掉包含在 <literal>svn:auto-props
+        </literal> 里的推荐属性. 因此, 管理员仍然需要使用钩子脚本验证文件和
+        目录上的属性是否符合管理员的策略, 并拒绝与策略不兼容的提交 (钩子脚本见
+        <xref linkend="svn.advanced.props.special.ignore"/>).</para>
 
     </sect2>
 
     <!-- =============================================================== -->
     <sect2 id="svn.advanced.props.ref">
+    <!--
       <title>Subversion's Reserved Properties</title>
+    -->
+      <title>Subversion 的保留属性</title>
 
+    <!--
       <para>In this section, we'll briefly summarize all the
         properties which Subversion reserves for its own use.  We'll
         look at both types of properties—those which are
         associated with individual versioned files and directories,
         and those which are associated with revisions.</para>
+    -->
+      <para>本节将对 Subversion 所有的保留属性做一个简单的总结, 包括版本化的
+        的属性 (和文件, 目录关联) 与非版本化的属性 (和版本号关联).</para>
 
       <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
       <sect3 id="svn.advanced.props.ref.versioned">
+    <!--
         <title>Versioned properties</title>
+    -->
+        <title>版本化的属性</title>
 
+    <!--
         <para>These are the versioned (or node) properties that
           Subversion reserves for its own use:</para>
+    -->
+        <para>这些是 Subversion 保留给自己用的版本化属性:</para>
 
         <variablelist>
   
@@ -2820,10 +2844,15 @@
           <varlistentry>
             <term><literal>svn:auto-props</literal></term>
             <listitem>
+    <!--
               <para>If present on a directory, the value is a set of
                 automatic property definitions which apply to all files
                 under the directory, See
                 <xref linkend="svn.advanced.props.auto" />.</para>
+    -->
+              <para>该属性包含了一系列的自动属性定义, 如果被设置在一个目录上,
+                那么自动属性定义会应用到目录内的所有文件, 见
+                <xref linkend="svn.advanced.props.auto"/>.</para>
             </listitem>
           </varlistentry>
   
@@ -2830,10 +2859,15 @@
           <varlistentry>
             <term><literal>svn:executable</literal></term>
             <listitem>
+    <!--
               <para>If present on a file, the client will make the file
                 executable in Unix-hosted working copies.  See
                 <xref linkend="svn.advanced.props.special.executable"
                 />.</para>
+    -->
+            <para>如果该属性被设置到一个文件上, 那客户端就会给 Unix 工作副本里
+              的文件设置上可执行执行, 见
+              <xref linkend="svn.advanced.props.special.executable"/>.</para>
             </listitem>
           </varlistentry>
   




More information about the svnbook-dev mailing list