[svnbook commit] r2588 - branches/ora-2e-reorg/src/en/book

cmpilato noreply at red-bean.com
Tue Jan 2 11:03:44 CST 2007


Author: cmpilato
Date: Tue Jan  2 11:03:44 2007
New Revision: 2588

Modified:
   branches/ora-2e-reorg/src/en/book/ch-reference.xml

Log:
* src/en/book/ch-reference.xml
  Update the svnversion usage and examples.  Patch by 
  Christopher Ness <chris at nesser.org>.

Modified: branches/ora-2e-reorg/src/en/book/ch-reference.xml
==============================================================================
--- branches/ora-2e-reorg/src/en/book/ch-reference.xml	(original)
+++ branches/ora-2e-reorg/src/en/book/ch-reference.xml	Tue Jan  2 11:03:44 2007
@@ -6010,7 +6010,7 @@
 
       <refsect1 id="svn.ref.svnversion.re.syn">
         <title>Synopsis</title>
-        <programlisting>svnversion [OPTIONS] WC_PATH [TRAIL_URL]</programlisting>
+        <programlisting>svnversion [OPTIONS] [WC_PATH [TRAIL_URL]]</programlisting>
       </refsect1>
 
       <refsect1 id="svn.ref.svnversion.re.desc">
@@ -6028,6 +6028,10 @@
           <replaceable>WC_PATH</replaceable> does not rely on
           <replaceable>TRAIL_URL</replaceable>).</para>
 
+        <para>When WC_PATH is not defined the current directory
+          will be used as the working copy path.  TRAIL_URL cannot be
+          defined if WC_PATH is not explicitly given.</para>
+  
       </refsect1>
 
       <refsect1 id="svn.ref.svnversion.re.sw">
@@ -6079,11 +6083,12 @@
           example, immediately after an update), then that revision is
           printed out:</para>
 
-        <screen>$ svnversion .
+        <screen>$ svnversion
 4168</screen>
 
         <para>You can add TRAIL_URL to show that the working copy is
-          not switched from what you expect:</para>
+          not switched from what you expect.  Note that the WC_PATH was
+          required in this command:</para>
 
         <screen>$ svnversion . /repos/svn/trunk
 4168</screen>
@@ -6091,32 +6096,32 @@
         <para>For a mixed-revision working copy, the range of
           revisions present is printed:</para>
 
-        <screen>$ svnversion .
+        <screen>$ svnversion
 4123:4168</screen>
 
         <para>If the working copy contains modifications, a trailing
           "M" is added:</para>
 
-        <screen>$ svnversion .
+        <screen>$ svnversion
 4168M</screen>
 
         <para>If the working copy is switched, a trailing "S" is
           added:</para> 
 
-        <screen>$ svnversion .
+        <screen>$ svnversion
 4168S</screen>
 
         <para>Thus, here is a mixed-revision, switched working copy
           containing some local modifications:</para>
 
-        <screen>$ svnversion .
+        <screen>$ svnversion
 4212:4168MS</screen>
 
         <para>If invoked on a directory that is not a working copy,
           <command>svnversion</command> assumes it is an exported
           working copy and prints "exported":</para>
 
-        <screen>$ svnversion .
+        <screen>$ svnversion
 exported</screen>
 
       </refsect1>




More information about the svnbook-dev mailing list