[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Use long Subversion commands instead of short ones

From: Larry Shatzer <fugazi_at_zyx.net>
Date: 2003-02-24 22:50:21 CET

According to the HACKING file for the book, it says the long names for commands
should be used over short ones (checkout instead of co).

The following patch will fix this. It also patches a file in the www directory,
project_source.html, where it used co instead of checkout.

Log message: Fix all cases where short commands were used instead of long ones.

Index: www/project_source.html
===================================================================
--- www/project_source.html (revision 5068)
+++ www/project_source.html (working copy)
@@ -48,7 +48,7 @@
 
    <li><p>Use it to check out the newest Subversion source:</p>
    <pre>
- $ svn co http://svn.collab.net/repos/svn/trunk subversion
+ $ svn checkout http://svn.collab.net/repos/svn/trunk subversion
    </pre>
 
    <p>That will get you a new working copy directory named
Index: doc/book/book/ch02.xml
===================================================================
--- doc/book/book/ch02.xml (revision 5068)
+++ doc/book/book/ch02.xml (working copy)
@@ -373,9 +373,9 @@
           absent or <literal>localhost</literal>:</para>
  
         <screen>
-$ svn co file:///path/to/repos
+$ svn checkout file:///path/to/repos
 &hellip;
-$ svn co file://localhost/path/to/repos
+$ svn checkout file://localhost/path/to/repos
 &hellip;
 </screen>
 
@@ -389,9 +389,9 @@
           resides:</para>
 
         <screen>
-$ svn co file:///X:/path/to/repos
+$ svn checkout file:///X:/path/to/repos
 &hellip;
-$ svn co file:///X|/path/to/repos
+$ svn checkout file:///X|/path/to/repos
 &hellip;
 </screen>
  
Index: doc/book/book/ch03.xml
===================================================================
--- doc/book/book/ch03.xml (revision 5068)
+++ doc/book/book/ch03.xml (working copy)
@@ -192,14 +192,14 @@
         Subversion accepts:</para>
 
       <screen>
-$ svn co --revision {2/17/02}
-$ svn co --revision {"17 Feb"}
-$ svn co --revision {"17 Feb 2002"}
-$ svn co --revision {"17 Feb 2002 15:30"}
-$ svn co --revision {"17 Feb 2002 15:30:12 GMT"}
-$ svn co --revision {"10 days ago"}
-$ svn co --revision {"last week"}
-$ svn co --revision {"yesterday"}
+$ svn checkout --revision {2/17/02}
+$ svn checkout --revision {"17 Feb"}
+$ svn checkout --revision {"17 Feb 2002"}
+$ svn checkout --revision {"17 Feb 2002 15:30"}
+$ svn checkout --revision {"17 Feb 2002 15:30:12 GMT"}
+$ svn checkout --revision {"10 days ago"}
+$ svn checkout --revision {"last week"}
+$ svn checkout --revision {"yesterday"}
 &hellip;
       </screen>
       
@@ -270,7 +270,7 @@
     
 
     <screen>
-$ svn co http://svn.collab.net/repos/svn/trunk
+$ svn checkout http://svn.collab.net/repos/svn/trunk
 A trunk/subversion.dsw
 A trunk/svn_check.dsp
 A trunk/COMMITTERS
@@ -296,7 +296,7 @@
       URL:</para>
     
     <screen>
-$ svn co http://svn.collab.net/repos/svn/trunk/doc/book/tools
+$ svn checkout http://svn.collab.net/repos/svn/trunk/doc/book/tools
 A tools/readme-dblite.html
 A tools/fo-stylesheet.xsl
 A tools/svnbook.el
@@ -346,7 +346,7 @@
       copy into the new directory that you name. For example:</para>
     
     <screen>
-$ svn co http://svn.collab.net/repos/svn/trunk subv
+$ svn checkout http://svn.collab.net/repos/svn/trunk subv
 A subv/subversion.dsw
 A subv/svn_check.dsp
 A subv/COMMITTERS
@@ -1259,7 +1259,7 @@
         until the three temporary files are removed.</para>
 
       <screen>
-$ svn ci --message "Add a few more things"
+$ svn commit --message "Add a few more things"
 subversion/libsvn_client/commit.c:654: (apr_err=155015, src_err=0)
 svn: A conflict in the working copy obstructs the current operation
 svn: Commit failed (details follow):
@@ -1480,7 +1480,7 @@
         <option>--file</option> switch:</para>
 
       <screen>
-svn ci --file logmsg
+svn commit --file logmsg
 Sending sandwich
 Transmitting file data .
 Committed revision 4.
Index: doc/book/book/ch08.xml
===================================================================
--- doc/book/book/ch08.xml (revision 5068)
+++ doc/book/book/ch08.xml (working copy)
@@ -979,7 +979,7 @@
 $ svn delete myfile
 D myfile
 
-$ svn ci -m "Deleted file 'myfile'."
+$ svn commit -m "Deleted file 'myfile'."
 Deleting myfile
 Transmitting file data .
 Committed revision 14.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Feb 24 22:51:42 2003

This is an archived mail posted to the Subversion Dev mailing list.