[svnbook] r5761 committed - branches/1.8/zh/book/ ch06-server-configuration.xml

wuzhouhui at users.sourceforge.net wuzhouhui at users.sourceforge.net
Sat Sep 1 21:48:25 CDT 2018


Revision: 5761
          http://sourceforge.net/p/svnbook/source/5761
Author:   wuzhouhui
Date:     2018-09-02 02:48:24 +0000 (Sun, 02 Sep 2018)
Log Message:
-----------
1.8/zh: translation of chapter 6 in progress

Modified Paths:
--------------
    branches/1.8/zh/book/ch06-server-configuration.xml

Modified: branches/1.8/zh/book/ch06-server-configuration.xml
===================================================================
--- branches/1.8/zh/book/ch06-server-configuration.xml	2018-09-01 03:14:28 UTC (rev 5760)
+++ branches/1.8/zh/book/ch06-server-configuration.xml	2018-09-02 02:48:24 UTC (rev 5761)
@@ -5057,6 +5057,7 @@
       -->
           <title>URL 语法</title>
 
+      <!--
           <para>If the URLs do not contain any information about which
             version of the resource you wish to
             see, <command>mod_dav_svn</command> will answer with the
@@ -5066,7 +5067,14 @@
             always point at the latest manifestation of that document.
             Of course, you can even use the URLs as hyperlinks from
             other web sites, too.</para>
+      -->
+          <para>如果 URL 没有指定所请求的资源的版本,
+            <command>mod_dav_svn</command> 将返回最新的版本, 这种做法最大的
+            好处是你可以把 Subversion URL (例如某篇文档的 URL) 发给其他同事,
+            而这些 URL 将始终指向文档的最新版. 当然, 你也可以把这些 URL 作
+            为超链接, 放到网站上.</para>
 
+      <!--
           <para>As of Subversion 1.6, <command>mod_dav_svn</command>
             supports a public URI syntax for examining older revisions
             of both files and directories.  The syntax uses the query
@@ -5082,12 +5090,29 @@
             <literal>r=<replaceable>REV</replaceable></literal>,
             where <replaceable>REV</replaceable> is a revision number, to
             specify an operative revision.</para>
+      -->
+          <para>从 Subversion 1.6 开始, <command>mod_dav_svn</command> 支持
+            一种用于查看旧版本文件与目录的 URL 语法. 这种语法使用 URL 的查询
+            字符串部分指定挂勾版本号和 (或) 实施版本号, Subversion 将会把这些
+            版本号对应的文件与目录显示到网页浏览器上. 为了指定挂勾版本号, 在
+            URL 的查询字符串部分添加
+            <literal>p=<replaceable>PEGREV</replaceable></literal> 形式的
+            名字/值 对 (其中, <replaceable>PEGREV</replaceable> 是一个版本号);
+            为了指定实施版本号, 在 URL 的查询字符串部分添加
+            <literal>r=<replaceable>REV</replaceable></literal> 形式的
+            名字/值 对 (其中, <replaceable>REV</replaceable> 是一个版本号).
+          </para>
 
+      <!--
           <para>For example, if you wish to see the latest version of a
             <filename>README.txt</filename> file located in your
             project's <filename>/trunk</filename>, point your web
             browser to that file's repository URL, which might look
             something like the following:</para>
+      -->
+          <para>比如说, 你想查看 <filename>/trunk</filename> 里的最新版的
+            <filename>README.txt</filename>, 就在网页浏览器的地址栏里输入类似
+            于下面的 URL:</para>
 
           <informalexample>
             <programlisting>
@@ -5095,9 +5120,13 @@
 </programlisting>
           </informalexample>
 
+      <!--
           <para>If you now wish to see some older version of that
             file, add an operative revision to the URL's query
             string:</para>
+      -->
+          <para>如果你想查看该文件的旧版, 在 URL 的查询字符部分添加实施版本号:
+          </para>
 
           <informalexample>
             <programlisting>
@@ -5105,9 +5134,13 @@
 </programlisting>
           </informalexample>
 
+      <!--
           <para>What if the thing you're trying to view no longer exists
             in the youngest revision of the repository?  That's where a
             peg revision is handy:</para>
+      -->
+          <para>如果你想查看的文件在最新版中已经被删除了, 那又该怎么办? 这
+            时候就要用到挂勾版本号:</para>
 
           <informalexample>
             <programlisting>
@@ -5115,9 +5148,13 @@
 </programlisting>
           </informalexample>
 
+      <!--
           <para>And of course, you can combine peg revision and
             operative revision specifiers to fine-tune the exact item
             you wish to view:</para>
+      -->
+          <para>当然, 你还可以结合使用挂勾版本号和实施版本号, 更精细地指定待
+            查看的项目:</para>
 
           <informalexample>
             <programlisting>




More information about the svnbook-dev mailing list