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

wuzhouhui at users.sourceforge.net wuzhouhui at users.sourceforge.net
Tue Jul 11 10:06:34 CDT 2017


Revision: 5353
          http://sourceforge.net/p/svnbook/source/5353
Author:   wuzhouhui
Date:     2017-07-11 15:06:34 +0000 (Tue, 11 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-11 12:09:11 UTC (rev 5352)
+++ branches/1.8/zh/book/ch03-advanced-topics.xml	2017-07-11 15:06:34 UTC (rev 5353)
@@ -1987,8 +1987,12 @@
 
     <!-- =============================================================== -->
     <sect2 id="svn.advanced.props.inheritable">
+    <!--
       <title>Inherited Properties</title>
+    -->
+      <title>继承的属性</title>
 
+    <!--
       <para>Subversion 1.8 introduces the concept of inherited properties.
         There is really nothing special about a property that makes it
         inheritable.  In fact, all versioned properties are inheritable!
@@ -1997,19 +2001,36 @@
         properties set on a target path's <emphasis>parents</emphasis>,
         even if those parents are not found within the working copy.
         </para>
+    -->
+        <para>Subversion 1.8 引入了继承属性这个概念. 将一个属性设置成可继承的
+          并没有什么很特别的地方, 实际上, 所有版本化的属性都是可继承的! 1.8 前
+          的版本化属性和 1.8 后的版本化属性的主要区别是后者支持在一个目标路径
+          的 <emphasis>父路径</emphasis> (<emphasis>parents</emphasis>) 上搜索
+          索引, 即使这些父路径在工作副本里不存在.</para>
 
+    <!--
       <para>Generic property inheritance manifests itself in a few
         commands.  First, the <command>svn proplist</command> and <command>
         svn propget</command> subcommands can retrieve all the properties
         on a URL's or a working copy path's parents by using the <option>
-        --show-inherited-props</option> option.  You might think of this
-        as the opposite of a <option>--recursive</option> subcommand
+        - -show-inherited-props</option> option.  You might think of this
+        as the opposite of a <option>- -recursive</option> subcommand
         operation—instead of recursing "down" into a target's
-        subdirectories, subcommands with the <option>--show-inherited-props
+        subdirectories, subcommands with the <option>- -show-inherited-props
         </option> option look "up" into the target's parent directories.
         The <command>svnlook propget</command> and <command>svnlook
         proplist </command> subcommands also use the <option>
-        --show-inherited-props</option> option in a similar fashion.</para>
+        - -show-inherited-props</option> option in a similar fashion.</para>
+    -->
+    <para>有些命令可以显示出一般的属性继承, 首先 <command>svn proplist</command>
+      和 <command>svn propget</command> 可以检索 URL 的或工作副本路径的父路径
+      上的所有属性, 方法是带上选项 <option>--show-inherited-props</option>.
+      读者可能会觉得这是选项 <option>--recursive</option> 的反面—选项
+      <option>--recursive</option> 向 <quote>下</quote> 递归到目标的子目录里,
+      而 <option>--show-inherited-props</option> 是向 <quote>上</quote> 看
+      目标的父目录. 命令 <command>svnlook propget</command> 和
+      <command>svnlook proplist</command> 按照类似的方法使用选项
+      <option>--show-inherited-props</option>.</para>
 
       <para>Let's look at an example of how this works. The following
         recursive propget on the root of our working copy finds that the




More information about the svnbook-dev mailing list