[svnbook] r5582 committed - branches/1.8/zh/book/ch05-repository-admin.xml
wuzhouhui at users.sourceforge.net
wuzhouhui at users.sourceforge.net
Thu Jan 11 06:36:12 CST 2018
Revision: 5582
http://sourceforge.net/p/svnbook/source/5582
Author: wuzhouhui
Date: 2018-01-11 12:36:12 +0000 (Thu, 11 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-11 10:40:32 UTC (rev 5581)
+++ branches/1.8/zh/book/ch05-repository-admin.xml 2018-01-11 12:36:12 UTC (rev 5582)
@@ -1647,7 +1647,15 @@
<indexterm>
<primary>transactions</primary>
<secondary>inspection</secondary>
- </indexterm><command>svnlook</command> is a tool provided by
+ </indexterm>
+ <command>svnlook</command> 用于查看仓库的各个版本号和
+ <firstterm>事务</firstterm> (<firstterm>transactions</firstterm>,
+ 正在生成过程中的版本号), 不会向仓库执行写操作. <command>svnlook
+ </command> 经常被钩子使用, 用于报告仓库即将提交或刚刚提交的修改,
+ 用到的钩子分别是 pre-commit 和 post-commit. 管理员还可以用
+ <command>svnlook</command> 诊断问题.</para>
+ <!--
+ <command>svnlook</command> is a tool provided by
Subversion for examining the various revisions and
<firstterm>transactions</firstterm> (which are revisions
in the making) in a repository. No part of this program
@@ -1658,9 +1666,13 @@
committed (in the case of the <command>post-commit</command>
hook) to the repository. A repository administrator may use
this tool for diagnostic purposes.</para>
+ -->
+ <!--
<para><command>svnlook</command> has a straightforward
syntax:</para>
+ -->
+ <para><command>svnlook</command> 的语法非常直观:</para>
<informalexample>
<screen>
@@ -1675,16 +1687,17 @@
</screen>
</informalexample>
+ <!--
<para>Most of <command>svnlook</command>'s
subcommands can operate on either a revision or a
transaction tree, printing information about the tree
itself, or how it differs from the previous revision of the
- repository. You use the <option>--revision</option>
- (<option>-r</option>) and <option>--transaction</option>
+ repository. You use the <option>- -revision</option>
+ (<option>-r</option>) and <option>- -transaction</option>
(<option>-t</option>) options to specify which revision or
transaction, respectively, to examine. In the absence of
- both the <option>--revision</option> (<option>-r</option>)
- and <option>--transaction</option> (<option>-t</option>)
+ both the <option>- -revision</option> (<option>-r</option>)
+ and <option>- -transaction</option> (<option>-t</option>)
options, <command>svnlook</command> will examine the
youngest (or <literal>HEAD</literal>) revision in the
repository. So the following two commands do exactly the
@@ -1691,6 +1704,17 @@
same thing when 19 is the youngest revision in the
repository located at
<filename>/var/svn/repos</filename>:</para>
+ -->
+ <para><command>svnlook</command> 的大部分子命令都能根据一个给定的版本
+ 号或事务, 输出与前一个版本号的不同之外或事务本身的信息, 指定版本号和
+ 事务的选项分别是 <option>--revision</option> (<option>-r</option>)
+ 和 <option>--transaction</option> (<option>-t</option>). 如果没有
+ 指定 <option>--revision</option> (<option>-r</option>) 和
+ <option>--transaction</option> (<option>-t</option>),
+ <command>svnlook</command> 将查看仓库最年轻的版本号 (即
+ <literal>HEAD</literal>). 如果版本号 19 是仓库
+ <filename>/var/svn/repos</filename> 目前最年轻的版本号, 则下面的 2
+ 个命令是等价的:</para>
<informalexample>
<screen>
More information about the svnbook-dev
mailing list