[svnbook] r5568 committed - branches/1.8/zh/book/ch05-repository-admin.xml

wuzhouhui at users.sourceforge.net wuzhouhui at users.sourceforge.net
Sat Jan 6 20:31:04 CST 2018


Revision: 5568
          http://sourceforge.net/p/svnbook/source/5568
Author:   wuzhouhui
Date:     2018-01-07 02:31:03 +0000 (Sun, 07 Jan 2018)
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	2018-01-04 12:36:27 UTC (rev 5567)
+++ branches/1.8/zh/book/ch05-repository-admin.xml	2018-01-07 02:31:03 UTC (rev 5568)
@@ -1354,11 +1354,15 @@
           <varlistentry>
             <term><literal>svn:txn-client-compat-version</literal></term>
             <listitem>
+      <!--
               <para>Carries the Subversion library version string with
                 which the committing client claims compatibility.
                 This is useful for deciding whether the client
                 supports the minimal feature set required for proper
                 handling of the repository data.</para>
+      -->
+              <para>携带了客户端支持的 Subversion 函数库版本字符串, 这对于判
+                断客户端是否支持仓库数据处理所要求的最小特性集非常有用.</para>
             </listitem>
           </varlistentry>
 
@@ -1365,11 +1369,17 @@
           <varlistentry>
             <term><literal>svn:txn-user-agent</literal></term>
             <listitem>
+      <!--
               <para>Carries the <quote>user agent</quote> string which
                 describes the committing client program.  Subversion's
                 libraries define the initial portion of this string,
                 but third-party consumers of the API (GUI clients,
                 etc.) can append custom information to it.</para>
+      -->
+              <para>携带了 <quote>用户代理</quote> (user agent) 字符串, 它描述
+                了发起提交的客户端程序. Subversion 库函数定义了该字符串的起始
+                部分的内容, 但是使用了 Subversion API 的第三方程序 (例如 GUI
+                客户端) 可以向字符串附加自定义的信息.</para>
             </listitem>
           </varlistentry>
   
@@ -1380,6 +1390,7 @@
         <!-- ###       with a cross-reference here.             ### -->
 
         <note>
+      <!--
           <para>While most clients will transmit ephemeral transaction
             properties early enough in the commit process that they
             may be inspected by the start-commit hook script, some
@@ -1392,6 +1403,13 @@
             transmit the commit payload; the latter <quote>just in
             case</quote> the validation checks couldn't be performed
             by the start-commit hook.</para>
+      -->
+          <para>大多数客户端是在提交过程的早期阶段传送临时事务属性, 从而可以
+            被钩子 start-commit 检查, 但 Subversion 的某些配置会使得这些属性
+            直到提交过程的后期才会被设置上. 管理员应该考虑同时在钩子
+            start-commit 和 pre-commit 上执行基于临时事务属性的检查工作.
+            利用钩子 start-commit 过滤掉无效的客户端, 如果无法在 start-commit
+            完成检查工作, 就在 pre-commit 完成.</para>
         </note>
 
         <para>As noted before, ephemeral transaction properties are




More information about the svnbook-dev mailing list