[svnbook commit] r3026 - trunk/src/en/book

cmpilato noreply at red-bean.com
Tue Apr 1 00:23:37 CDT 2008


Author: cmpilato
Date: Tue Apr  1 00:23:34 2008
New Revision: 3026

Log:
* src/en/book/ch09-reference.xml
  Add an example of using 'svn checkout' with the -r option.
  Suggested by Ding Xiaoliang <dingsm {at} gmail.com>.


Modified:
   trunk/src/en/book/ch09-reference.xml

Modified: trunk/src/en/book/ch09-reference.xml
==============================================================================
--- trunk/src/en/book/ch09-reference.xml	(original)
+++ trunk/src/en/book/ch09-reference.xml	Tue Apr  1 00:23:34 2008
@@ -1133,7 +1133,9 @@
 $ svn checkout file:///var/svn/repos/test mine
 A  mine/a
 A  mine/b
-Checked out revision 2.
+A  mine/c
+A  mine/d
+Checked out revision 20.
 $ ls
 mine
 </screen>
@@ -1145,10 +1147,12 @@
 $ svn checkout file:///var/svn/repos/test  file:///var/svn/repos/quiz
 A  test/a
 A  test/b
-Checked out revision 2.
+A  test/c
+A  test/d
+Checked out revision 20.
 A  quiz/l
 A  quiz/m
-Checked out revision 2.
+Checked out revision 13.
 $ ls
 quiz  test
 </screen>
@@ -1161,10 +1165,12 @@
 $ svn checkout file:///var/svn/repos/test  file:///var/svn/repos/quiz working-copies
 A  working-copies/test/a
 A  working-copies/test/b
-Checked out revision 2.
+A  working-copies/test/c
+A  working-copies/test/d
+Checked out revision 20.
 A  working-copies/quiz/l
 A  working-copies/quiz/m
-Checked out revision 2.
+Checked out revision 13.
 $ ls
 working-copies
 </screen>
@@ -1176,25 +1182,33 @@
             incomplete working copy:</para>
 
           <screen>
-$ svn checkout file:///var/svn/repos/test test
-A  test/a
-A  test/b
+$ svn checkout file:///var/svn/repos/test mine
+A  mine/a
+A  mine/b
 ^C
 svn: The operation was interrupted
 svn: caught SIGINT
 
-$ svn checkout file:///var/svn/repos/test test
-A  test/c
-A  test/d
+$ svn checkout file:///var/svn/repos/test mine
+A  mine/c
 ^C
 svn: The operation was interrupted
 svn: caught SIGINT
 
-$ cd test
-$ svn update
-A  test/e
-A  test/f
-Updated to revision 3.
+$ svn update mine
+A  mine/d
+Updated to revision 20.
+</screen>
+
+          <para>If you wish to check out some revision other than the
+            most recent one, you can do so by providing the
+            <option>--revision</option> (<option>-r</option>) option
+            to the <command>svn checkout</command> command:</para>
+
+          <screen>
+$ svn checkout -r 2 file:///var/svn/repos/test mine
+A  mine/a
+Checked out revision 2.
 </screen>
 
         </refsect1>




More information about the svnbook-dev mailing list