[svnbook] r5569 committed - branches/1.8/zh/book/ch05-repository-admin.xml
wuzhouhui at users.sourceforge.net
wuzhouhui at users.sourceforge.net
Mon Jan 8 06:13:06 CST 2018
Revision: 5569
http://sourceforge.net/p/svnbook/source/5569
Author: wuzhouhui
Date: 2018-01-08 12:13:06 +0000 (Mon, 08 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-07 02:31:03 UTC (rev 5568)
+++ branches/1.8/zh/book/ch05-repository-admin.xml 2018-01-08 12:13:06 UTC (rev 5569)
@@ -1412,6 +1412,7 @@
完成检查工作, 就在 pre-commit 完成.</para>
</note>
+ <!--
<para>As noted before, ephemeral transaction properties are
removed from the transaction just before it is promoted to a
new revision. Some administrators may wish to preserve the
@@ -1422,7 +1423,15 @@
<filename>persist-ephemeral-txnprops.py</filename> script
(in the <filename>tools/hook-scripts/</filename>
subdirectory) for doing precisely that.</para>
+ -->
+ <para>前面已经说过, 就在事务变成最终的版本号之前, 临时事务属性将会被
+ 删除, 因此有些管理员希望这些属性上的信息能够永久保留. 我们的建议是
+ 在钩子 pre-commit 里, 把属性上的值复制到新的属性上. 实际上,
+ Subversion 发布的源代码所提供的脚本
+ <filename>persist-ephemeral-txnprops.py</filename> (在
+ <filename>tools/hook-scripts/</filename>) 做的正是这件事.</para>
+ <!--
<para>The third common type of hook script usage is for the
purpose of replication. Whether you are driving a simple
backup process or a more involved remote repository
@@ -1431,13 +1440,23 @@
<xref linkend="svn.reposadmin.maint.replication" /> for more
information about these aspects of repository
maintenance.</para>
+ -->
+ <para>钩子的第三种常见用途是重复. 如果管理员只是在做一个简单的备份,
+ 又或者是远程仓库镜像备份, 钩子脚本都能起到非常重要的作用. 关于仓库
+ 备份的更多内容, 见
+ <xref linkend="svn.reposadmin.maint.backup" /> 和
+ <xref linkend="svn.reposadmin.maint.replication" />.</para>
</sect3>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<sect3 id="svn.reposadmin.hooks.summary">
+ <!--
<title>Finding hook scripts or rolling your own</title>
+ -->
+ <title>寻找或自己编写钩子脚本</title>
+ <!--
<para>As you might imagine, there is no shortage of Subversion
hook programs and scripts that are freely available either
from the Subversion community itself or elsewhere. In fact,
@@ -1448,6 +1467,13 @@
own. See <xref linkend="svn.developer" /> for information
about developing software using Subversion's public
APIs.</para>
+ -->
+ <para>读者应该可以想到, 从 Subversion 社区或其他地方都能找到大量可以
+ 随意使用的钩子程序和脚本. 实际上, Subversion 发布的源代码就提供了
+ 几个适当性很广泛的钩子脚本, 脚本文件放在
+ <filename>tools/hook-scripts/</filename>. 然而, 如果读者无法找到
+ 满意的钩子脚本, 你可能需要自己编写. 关于如何使用 Subversion
+ 的公共 API 进行软件开发, 见 <xref linkend="svn.developer" />.</para>
<warning>
<para>Hook scripts can do almost anything, but hook script
More information about the svnbook-dev
mailing list