[svnbook] r5936 committed - branches/1.8/zh/book/ref-svnlook.xml
wuzhouhui at users.sourceforge.net
wuzhouhui at users.sourceforge.net
Thu Jun 20 09:17:41 CDT 2019
Revision: 5936
http://sourceforge.net/p/svnbook/source/5936
Author: wuzhouhui
Date: 2019-06-20 14:17:37 +0000 (Thu, 20 Jun 2019)
Log Message:
-----------
1.8/zh: translation of svnlook reference in progress
Modified Paths:
--------------
branches/1.8/zh/book/ref-svnlook.xml
Modified: branches/1.8/zh/book/ref-svnlook.xml
===================================================================
--- branches/1.8/zh/book/ref-svnlook.xml 2019-06-16 11:36:58 UTC (rev 5935)
+++ branches/1.8/zh/book/ref-svnlook.xml 2019-06-20 14:17:37 UTC (rev 5936)
@@ -883,16 +883,23 @@
</screen>
</informalexample>
+ <!--
<para>By default, <command>svnlook diff</command> will treat
copied files very much like any other added file,
displaying in their entirety the contents of the new file
and merely using a different label to draw the copy/add
distinction. However, you can use the
- <option>--diff-copy-from</option> option to cause
+ ### TODO
+ <option>- -diff-copy-from</option> option to cause
<command>svnlook diff</command> to consider a copied
file as worthy of mention only if it differs from the file
from which it was copied, and to actually describe those
differences.</para>
+ -->
+ <para>默认情况下, <command>svnlook diff</command> 把复制后的文件当成
+ 新增的文件对待, 仅仅使用不同的标签来区分复制与新增的区别. 然而,
+ 选项 <option>--diff-copy-from</option> 使得 <command>svnlook
+ diff</command> 输出复制后的文件与源文件之间的差异:</para>
<informalexample>
<screen>
@@ -922,8 +929,12 @@
</screen>
</informalexample>
- <para>Use the <option>--no-diff-deleted</option> option to
+ <!--
+ <para>Use the <option>- -no-diff-deleted</option> option to
silence output regarding deleted files.</para>
+ -->
+ <para>选项 <option>--no-diff-deleted</option> 使得 <command>svnlook
+ diff</command> 不再输出被删除的文件的差异:</para>
<informalexample>
<screen>
@@ -945,9 +956,13 @@
</screen>
</informalexample>
+ <!--
<para>Note that in each of the previous examples, when a
file has a nontextual <literal>svn:mime-type</literal>
property, the differences are not explicitly shown.</para>
+ -->
+ <para>注意, 如果文件具有非文本化的 <literal>svn:mime-type</literal>
+ 属性, 则 <command>svnlook diff</command> 不会输出文件的差异.</para>
</refsect1>
</refentry>
@@ -965,7 +980,10 @@
<refnamediv>
<refname>svnlook dirs-changed</refname>
+ <!--
<refpurpose>Print the directories that were themselves changed.</refpurpose>
+ -->
+ <refpurpose>输出属性或子文件发生变化的目录.</refpurpose>
</refnamediv>
<refsynopsisdiv>
@@ -974,16 +992,25 @@
<!-- =============================================================== -->
<refsect1>
+ <!--
<title>Description</title>
+ -->
+ <title>描述</title>
+ <!--
<para>Print the directories that were themselves changed
(property edits) or whose file children were
changed.</para>
+ -->
+ <para>输出属性或子文件发生变化的目录.</para>
</refsect1>
<!-- =============================================================== -->
<refsect1>
+ <!--
<title>Options</title>
+ -->
+ <title>选项</title>
<informalexample>
<screen>
@@ -995,10 +1022,16 @@
<!-- =============================================================== -->
<refsect1>
+ <!--
<title>Examples</title>
+ -->
+ <title>示例</title>
+ <!--
<para>This shows the directories that changed in
revision 40 in our sample repository:</para>
+ -->
+ <para>下面的例子列出了在版本号 40 中发生变化的目录:</para>
<informalexample>
<screen>
@@ -1023,8 +1056,11 @@
<refnamediv>
<refname>svnlook filesize</refname>
+ <!--
<refpurpose>Print the size (in bytes) of a versioned
file.</refpurpose>
+ -->
+ <refpurpose>输出文件的大小, 以字节为单位.</refpurpose>
</refnamediv>
<refsynopsisdiv>
@@ -1034,22 +1070,37 @@
<!-- =============================================================== -->
<refsect1>
+ <!--
<title>Description</title>
+ -->
+ <title>描述</title>
+ <!--
<para>Print the file size (in bytes) of the file located
at <replaceable>PATH_IN_REPOS</replaceable> in the HEAD
revision of the repository identified
by <replaceable>REPOS_PATH</replaceable> as a base-10
integer followed by an end-of-line character. Use
- the <option>--revision</option> (<option>-r</option>)
- and <option>--transaction</option> (<option>-t</option>)
+ the <option>- -revision</option> (<option>-r</option>)
+ and <option>- -transaction</option> (<option>-t</option>)
options to specify a version of the file other than HEAD
whose file size you wish to display.</para>
+ -->
+ <para>以字节为单位输出文件的大小, 文件位于仓库
+ <replaceable>REPOS_PATH</replaceable> 内, 且路径为
+ <replaceable>PATH_IN_REPOS</replaceable>. 输出的文件大小以 10 为
+ 基数, 然后是一个换行符. 如果没有用选项
+ <option>--revision</option> (<option>-r</option>) 或
+ <option>--transaction</option> (<option>-t</option>) 指定版本号
+ 或事务, 则默认使用 <literal>HEAD</literal>.</para>
</refsect1>
<!-- =============================================================== -->
<refsect1>
+ <!--
<title>Options</title>
+ -->
+ <title>选项</title>
<informalexample>
<screen>
@@ -1061,12 +1112,20 @@
<!-- =============================================================== -->
<refsect1>
+ <!--
<title>Examples</title>
+ -->
+ <title>示例</title>
+ <!--
<para>The following demonstrates how to display the size of
the <filename>trunk/vendors/deli/soda.txt</filename> file
as it appeared in revision 40 of our sample
repository:</para>
+ -->
+ <para>下面的例子展示了如何查看文件
+ <filename>trunk/vendors/deli/soda.txt</filename> 在版本号 40
+ 时的大小:</para>
<informalexample>
<screen>
More information about the svnbook-dev
mailing list