[svnbook] r5906 committed - branches/1.8/zh/book/ref-svn.xml

wuzhouhui at users.sourceforge.net wuzhouhui at users.sourceforge.net
Sat Mar 30 06:45:49 CDT 2019


Revision: 5906
          http://sourceforge.net/p/svnbook/source/5906
Author:   wuzhouhui
Date:     2019-03-30 11:45:46 +0000 (Sat, 30 Mar 2019)
Log Message:
-----------
1.8/zh: translation of svn reference in progress

Modified Paths:
--------------
    branches/1.8/zh/book/ref-svn.xml

Modified: branches/1.8/zh/book/ref-svn.xml
===================================================================
--- branches/1.8/zh/book/ref-svn.xml	2019-03-24 03:10:06 UTC (rev 5905)
+++ branches/1.8/zh/book/ref-svn.xml	2019-03-30 11:45:46 UTC (rev 5906)
@@ -4157,8 +4157,11 @@
 
     <refnamediv>
       <refname>svn import</refname>
+      <!--
       <refpurpose>Commit an unversioned file or tree into the 
         repository.</refpurpose>
+      -->
+      <refpurpose>把未被版本控制的文件或目录树提交到仓库中.</refpurpose>
     </refnamediv>
 
     <refsynopsisdiv>
@@ -4167,8 +4170,12 @@
 
     <!-- =============================================================== -->
     <refsect1>
+      <!--
       <title>Description</title>
+      -->
+      <title>描述</title>
 
+      <!--
       <para>Recursively commit a copy of
         <replaceable>PATH</replaceable> to
         <replaceable>URL</replaceable>.  If
@@ -4176,13 +4183,23 @@
         <quote><filename>.</filename></quote> is assumed.  Parent
         directories are created in the repository as necessary.
         Unversionable items such as device files and pipes are
-        ignored even if <option>--force</option> is
+        ignored even if <option>- -force</option> is
         specified.</para>
+      -->
+      <para>递归地把 <replaceable>PATH</replaceable> 提交到
+        <replaceable>URL</replaceable>, 如果省略了
+        <replaceable>PATH</replaceable>, 将使用
+        <quote><filename>.</filename></quote>. 在必要时会在仓库中创建父目录.
+        即使添加了选项 <option>--force</option>, 无法被版本控制的文件 (例如
+        设备文件和命名管道) 也会被忽略.</para>
     </refsect1>
 
     <!-- =============================================================== -->
     <refsect1>
+      <!--
       <title>Options</title>
+      -->
+      <title>选项</title>
 
       <informalexample>
         <screen>
@@ -4204,8 +4221,12 @@
 
     <!-- =============================================================== -->
     <refsect1>
+      <!--
       <title>Examples</title>
+      -->
+      <title>示例</title>
 
+      <!--
       <para>This imports the local directory
         <filename>myproj</filename> into
         <filename>trunk/misc</filename> in your repository.  The
@@ -4213,6 +4234,11 @@
         before you import into it—<command>svn
         import</command> will recursively create directories for
         you.</para>
+      -->
+      <para>下面的命令把本地目录 <filename>myproj</filename> 导入到仓库的
+        <filename>trunk/misc</filename> 目录中. 在导入前不用事先创建
+        <filename>trunk/misc</filename>—<command>svn import</command>
+        会自动创建所需的目录.</para>
 
       <informalexample>
         <screen>
@@ -4225,10 +4251,15 @@
 </screen>
       </informalexample>
 
+      <!--
       <para>Be aware that this will <emphasis>not</emphasis>
         create a directory named <filename>myproj</filename> in
         the repository.  If that's what you want, simply add
         <filename>myproj</filename> to the end of the URL:</para>
+      -->
+      <para>需要注意的是上面的命令 <emphasis>不会</emphasis> 在仓库中创建目录
+        <filename>myproj</filename>, 但是如果你希望创建该目录, 就把
+        <filename>myproj</filename> 作为 URL 的最后一个分量:</para>
 
       <informalexample>
         <screen>
@@ -4241,10 +4272,15 @@
 </screen>
       </informalexample>
 
+      <!--
       <para>After importing data, note that the original tree is
         <emphasis>not</emphasis> under version control.  To start
         working, you still need to <command>svn checkout</command>
         a fresh working copy of the tree.</para>
+      -->
+      <para>导入完成后, 被导入的本地目录 <emphasis>不会</emphasis> 变成工作
+        副本, 用户还是需要使用 <command>svn checkout</command> 检出工作副本.
+      </para>
       
     </refsect1>
   </refentry>
@@ -4262,8 +4298,12 @@
 
     <refnamediv>
       <refname>svn info</refname>
+      <!--
       <refpurpose>Display information about a local or remote 
         item.</refpurpose>
+      -->
+      <refpurpose>显示文件的相关信息, 该文件可以在本地工作副本或远程服务器
+        上.</refpurpose>
     </refnamediv>
 
     <refsynopsisdiv>
@@ -4272,28 +4312,50 @@
 
     <!-- =============================================================== -->
     <refsect1>
+      <!--
       <title>Description</title>
+      -->
+      <title>描述</title>
 
+      <!--
       <para>Print information about the working copy paths or URLs
         specified.  The information displayed for each path may
         include (as pertinent to the object at that path):</para>
+      -->
+      <para>打印工作副本路径或 URL 的相关信息, 相关信息可能包括:</para>
 
       <itemizedlist>
+      <!--
         <listitem><para>information about the repository in which
           the object is versioned</para></listitem>
+      -->
+      <listitem><para>该对象所在的仓库信息</para></listitem>
+      <!--
         <listitem><para>the most recent commit made to the
           specified version of the object</para></listitem>
+      -->
+      <listitem><para>该对象的最近一次提交</para></listitem>
         <listitem><para>any user-level locks held on the
           object</para></listitem>
+      <listitem><para>该对象上的用户级锁</para></listitem>
+      <!--
         <listitem><para>local scheduling information (added,
           deleted, copied, etc.)</para></listitem>
+      -->
+      <listitem><para>本地的调度信息 (添加, 删除, 复制等)</para></listitem>
+      <!--
         <listitem><para>local conflict information</para></listitem>
+      -->
+        <listitem><para>本地的冲突信息</para></listitem>
       </itemizedlist>
     </refsect1>
 
     <!-- =============================================================== -->
     <refsect1>
+      <!--
       <title>Options</title>
+      -->
+      <title>选项</title>
 
       <informalexample>
         <screen>
@@ -4310,11 +4372,18 @@
 
     <!-- =============================================================== -->
     <refsect1>
+      <!--
       <title>Examples</title>
+      -->
+      <title>示例</title>
 
+      <!--
       <para><command>svn info</command> will show you all the
         useful information that it has for items in your working
         copy.  It will show information for files:</para>
+      -->
+      <para><command>svn info</command> 会显示工作副本路径的所有相关信息,
+        例如显示文件的信息:</para>
 
       <informalexample>
         <screen>
@@ -4338,7 +4407,10 @@
 </screen>
       </informalexample>
 
+      <!--
       <para>It will also show information for directories:</para>
+      -->
+      <para>显示目录的信息:</para>
 
       <informalexample>
         <screen>
@@ -4359,10 +4431,15 @@
 </screen>
       </informalexample>
 
+      <!--
        <para><command>svn info</command> also acts on URLs (also
          note that the file <filename>readme.doc</filename> in
          this example is locked, so lock information is also
          provided):</para>
+      -->
+       <para><command>svn info</command> 也能针对 URL 进行操作 (注意在下面
+         例子里, 文件 <filename>readme.doc</filename> 是被加锁的, 所以输出中
+         包含了关于锁的信息):</para>
 
        <informalexample>
          <screen>
@@ -4387,9 +4464,13 @@
 </screen>
        </informalexample>
 
+      <!--
        <para>Lastly, <command>svn info</command> output is
          available in XML format by passing
-         the <option>--xml</option> option:</para>
+         the <option>- -xml</option> option:</para>
+      -->
+       <para>最后, 如果添加了选项 <option>--xml</option>,
+         <command>svn info</command> 还能以 XML 格式打印输出:</para>
 
        <informalexample>
          <screen>
@@ -4436,7 +4517,10 @@
 
     <refnamediv>
       <refname>svn list (ls)</refname>
+      <!--
       <refpurpose>List directory entries in the repository.</refpurpose>
+      -->
+      <refpurpose>列出仓库中的目录项.</refpurpose>
     </refnamediv>
 
     <refsynopsisdiv>
@@ -4445,36 +4529,70 @@
 
     <!-- =============================================================== -->
     <refsect1>
+      <!--
       <title>Description</title>
+      -->
+      <title>描述</title>
 
+      <!--
       <para>List each <replaceable>TARGET</replaceable> file and
         the contents of each <replaceable>TARGET</replaceable>
         directory as they exist in the repository.  If
         <replaceable>TARGET</replaceable> is a working copy path,
         the corresponding repository URL will be used.</para>
+      -->
+      <para>列出仓库中的每一个 <replaceable>TARGET</replaceable> 文件和
+        <replaceable>TARGET</replaceable> 目录的内容. 如果
+        <replaceable>TARGET</replaceable> 是一个工作副本路径, 命令将自动使用
+        工作路径的 URL.</para>
 
+      <!--
       <para>The default <replaceable>TARGET</replaceable> is
         <quote><filename>.</filename></quote>, meaning the
         repository URL of the current working copy
         directory.</para>
+      -->
+      <para><replaceable>TARGET</replaceable> 的默认值是
+        <quote><filename>.</filename></quote>, 即当前工作副本目录在仓库中的
+        URL.</para>
 
-      <para>With <option>--verbose</option>
+      <!--
+      <para>With <option>- -verbose</option>
         (<option>-v</option>), <command>svn list</command> shows
         the following fields for each item:</para>
+      -->
+      <para>如果带上了选项 <option>--verbose</option> (<option>-v</option>),
+        <command>svn list</command> 将额外显示项目的如下字段:</para>
 
       <itemizedlist>
+      <!--
         <listitem><para>Revision number of the last
           commit</para></listitem>
+      -->
+      <listitem><para>最近一次提交的版本号</para></listitem>
 
+      <!--
         <listitem><para>Author of the last commit</para></listitem>
+      -->
+        <listitem><para>最近一次提交的作者</para></listitem>
 
+      <!--
         <listitem><para>If locked, the letter <quote>O</quote> (see the preceding section on <xref
           linkend="svn.ref.svn.c.info"/> for details).</para></listitem>
+      -->
+    <listitem><para>如果文件被锁定了, 则显示字母 <quote>O</quote> (更多的细节
+        见前面的 <xref linkend="svn.ref.svn.c.info"/></para></listitem>
 
+      <!--
         <listitem><para>Size (in bytes)</para></listitem>
+      -->
+        <listitem><para>大小 (以字节为单位)</para></listitem>
 
+      <!--
         <listitem><para>Date and time of the last
           commit</para></listitem>
+      -->
+      <listitem><para>最近一次提交的日期和时间</para></listitem>
       </itemizedlist>
 
       <para>With <option>--xml</option>, output is in XML format




More information about the svnbook-dev mailing list