[svnbook] r5559 committed - branches/1.8/zh/book/ch05-repository-admin.xml
wuzhouhui at users.sourceforge.net
wuzhouhui at users.sourceforge.net
Fri Dec 29 08:30:37 CST 2017
Revision: 5559
http://sourceforge.net/p/svnbook/source/5559
Author: wuzhouhui
Date: 2017-12-29 14:30:36 +0000 (Fri, 29 Dec 2017)
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 2017-12-28 12:25:19 UTC (rev 5558)
+++ branches/1.8/zh/book/ch05-repository-admin.xml 2017-12-29 14:30:36 UTC (rev 5559)
@@ -885,6 +885,7 @@
<para>仓库既然创建好了, 接下来就可以对它进行改造.</para>
<warning>
+ <!--
<para>While some parts of a Subversion repository—such
as the configuration files and hook scripts—are meant
to be examined and modified manually, you shouldn't (and
@@ -897,6 +898,12 @@
manipulation of your version control history by poking and
prodding around in your repository's data store
files!</para>
+ -->
+ <para>虽然仓库的一部分—例如配置文件和钩子脚本—需要手工
+ 查看和修改, 但你不应该 (也不需要) 手工修改仓库的其他部分.
+ <command>svnadmin</command> 工具应该足以应付仓库的任意修改, 或者你
+ 也可以第三方工具对仓库进行调整. <emphasis>不要</emphasis> 为了篡改
+ 版本控制历史而手工修改仓库里的数据文件!</para>
</warning>
</sect2>
@@ -903,7 +910,10 @@
<!-- =============================================================== -->
<sect2 id="svn.reposadmin.hooks">
+ <!--
<title>Implementing Repository Hooks</title>
+ -->
+ <title>实现仓库钩子</title>
<para>
<indexterm>
@@ -917,7 +927,17 @@
<primary>repositories</primary>
<secondary>hooks</secondary>
<see>hook scripts</see>
- </indexterm>A <firstterm>hook</firstterm> is a program
+ </indexterm>
+ <firstterm>钩子</firstterm> (<firstterm>hook</firstterm>) 是
+ 一个由某些仓库事件触发的程序, 仓库事件包括但不限于新版本号的产生或
+ 是某些非版本化属性被修改了. 有些钩子 (称为 <quote>前置钩子</quote>)
+ 在仓库的操作执行之前运行, 从而实现提前报告即将发生的事情, 或阻止即将
+ 发生的事情. 还有些钩子 (称为 <quote>后置钩子</quote>) 在仓库事件完成
+ 之后运行, 可以用来执行一些检查—但不修改—仓库的任务. 每一
+ 个钩子都能得到足够的信息, 包括发生了什么事件, 被修改的仓库, 以及触发
+ 事件用户名.</para>
+ <!--
+ A <firstterm>hook</firstterm> is a program
triggered by some repository event, such as the creation of a
new revision or the modification of an unversioned property.
Some hooks (the so-called <quote>pre hooks</quote>) run in
@@ -930,6 +950,7 @@
information to tell what that event is (or was), the specific
repository changes proposed (or completed), and the username
of the person who triggered the event.</para>
+ -->
<para>The <filename>hooks</filename> subdirectory is, by
default, filled with templates for various repository
More information about the svnbook-dev
mailing list