Changes between Initial Version and Version 1 of pm-svn-cmds

May 28, 2006 1:18:48 AM (15 years ago)

started first draft


  • pm-svn-cmds

    v1 v1  
     1= Basic Commands =
     3Below we list the subversion command line commands that a typical developer has to know about.  Online help is available using {{{svn help}}}.  A detailed description of each command can be found in the "Subversion Complete Reference" chapter of the subversion book, at []
     5== svn help ==
     7Lists all available {{{svn}}} commands.  Help for a specific command {{{cmd}}} can be obtained with {{{svn help cmd}}}.
     9== svn checkout (short form: svn co) ==
     11Checks out a directory plus all subdirectories from a subversion repository.  The COIN repositories are available from the URL {{{}}}.  For each project, say {{{Prjct}}}, you obtain everything in the current revision for the project, by specifying {{{svn co}}}; if you only want a part of the code, such as the current official release (by convenction in the subdirecory {{{trunk}}}, you type {{{svn co}}}.  Usually, you should specify the target directory where you want your local copy of the code to be stored (such as {{{Coin-Prjct}}}).  If the target directory is omitted, the source code will be installed in a subdirectory with the name of the last directory in the URL, i.e., {{{trunk}}} in the example above.
     13If you want to specify a specific revision that you want to check out, you can do this using the {{{-r N}}} flag, where {{{N}}} is the revision number.
     15By default, {{{svn checkout}}} will download files in other subversion directories, if [wiki:pm-svn-externals svn externals] are defined for directories in the specified URL, and will recurse to further locations if externals are defined there.  If you don't want to download any externals, specify the {{{--ignore-externals}}} flag.
     17The COIN svn repository is set up in a way, so that everybody can download files, without having to provide a password.  You will have to provide your id and password once, if you want to do a write action, such as {{{svn submit}}}.
     19== svn update (short form: svn up) ==
     21Updates the local copy to the current version of the current directory and subdirectories, or of a specific directory, if it is given as argument (e.g., {{{svn up subdir}}}).  If you have made changes in your local copy, subversion will try to merge the difference between the previously checked-out version and the new one.  If it has trouble doing that, it will notify you of a ''conflict''.  You should then have a look at the files for which a conflict occured and fix it; the location of a conflict is marked by {{{<<<}}} and {{{>>>}}} strings.
     22It is important that you ''resolve'' the conflict, either by using {{{svn resolved}}} or {{{svn revert}}}, because you will otherwise not be able to commit your changes.
     24The {{{-r N}}} flag allows you to update your local copy to a specific revision number ({{{N}}}).  To avoid recursion into subdirectories during the update, use the {{{-N}}} flag.  The {{{--ignore-externals}}} flags tells subversion to ignore the externals.
     27== svn status (short form: svn st) ==
     29== svn commit (short form: svn ci) ==
     31== svn diff (short form: svn di) ==
     33== svn revert ==
     35== svn resolved ==
     37== svn add ==
     39== svn remove (short form: svn rm) ==
     41== svn copy (short form: svn cp) ==
     43== svn mkdir ==
     45== svn merge ==
     47== svn proplist (short form: svn plist) ==
     49== svn propget (short form: svn pget) ==
     51== svn propset (short form: svn pset) ==
     53== svn propdel (short form: svn pdel) ==
     55== svn export ==