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

wuzhouhui at users.sourceforge.net wuzhouhui at users.sourceforge.net
Wed Jul 26 09:51:54 CDT 2017


Revision: 5374
          http://sourceforge.net/p/svnbook/source/5374
Author:   wuzhouhui
Date:     2017-07-26 14:51:54 +0000 (Wed, 26 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-25 12:36:47 UTC (rev 5373)
+++ branches/1.8/zh/book/ch03-advanced-topics.xml	2017-07-26 14:51:54 UTC (rev 5374)
@@ -3461,6 +3461,7 @@
         不管文件的 MIME 类型, 直接执行操作.</para>
 
       <warning>
+    <!--
         <para>The <literal>svn:mime-type</literal> property, when set
           to a value that does not indicate textual file contents, can
           cause some unexpected behaviors with respect to other
@@ -3474,13 +3475,28 @@
           recursive property set, where Subversion will silently skip
           over files that it deems unsuitable for a given
           property.</para>
+    -->
+        <para>如果属性 <literal>svn:mime-type</literal> 的值不能说明文件内容
+          是文本的, 这将会给其他属性造成意想不到的影响. 例如, 二进制文件没有
+          行的概念, 所以 Subversion 不允许为二进制文件设置属性 <literal>
+            svn:eol-style</literal>. 如果命令的目标是单一的文件, 那么就很
+          容易看出来—<command>svn propset</command> 会报错退出, 但是,
+          如果用户递归地执行属性设置命令, 可能就没那么明显了: 如果 Subversion
+          觉得某个文件不适合设置给定的属性, 它就会悄无声息地跳过这个文件.
+        </para>
       </warning>
 
+    <!--
       <para>Subversion provides a number of mechanisms by which to
         automatically set the <literal>svn:mime-type</literal>
         property on a versioned file.  See
         <xref linkend="svn.advanced.props.auto" /> for details.</para>
+    -->
+      <para>Subversion 提供了多种用于自动设置属性 <literal>svn:mime-type
+        </literal> 的机制, 详细的介绍见 
+        <xref linkend="svn.advanced.props.auto" />.</para>
 
+    <!--
       <para>Also, if the <literal>svn:mime-type</literal> property is
         set, then the Subversion Apache module will use its value to
         populate the <literal>Content-type:</literal> HTTP header when
@@ -3487,12 +3503,20 @@
         responding to GET requests.  This gives your web browser a
         crucial clue about how to display a file when you use it to
         peruse your Subversion repository's contents.</para>
+    -->
+      <para>另外, 如果文件设置了属性 <literal>svn:mime-type</literal>, 响应
+        GET 请求时, Subversion Apache 模块将会使用属性的值填充 HTTP 头部的
+        <literal>Content-type</literal>. 如果用户使用浏览器查看仓库的内容, 这
+        可以提示浏览器应该如何显示文件.</para>
 
     </sect2>
   
     <!-- =============================================================== -->
     <sect2 id="svn.advanced.props.special.executable">
+    <!--
       <title>File Executability</title>
+    -->
+      <title>文件的可执行性</title>
  
       <para>On many operating systems, the ability to execute a file
         as a command is governed by the presence of an execute




More information about the svnbook-dev mailing list