Changes between Version 4 and Version 5 of pm-svn-cmds


Ignore:
Timestamp:
Jun 2, 2006 1:46:38 PM (14 years ago)
Author:
andreasw
Comment:

intermediate save

Legend:

Unmodified
Added
Removed
Modified
  • pm-svn-cmds

    v4 v5  
    99=== svn checkout (short form: svn co) ===
    1010
    11 '''Checks out a directory plus all subdirectories''' from a subversion repository.  The COIN repositories are available from the URL {{{https://www.coin-or.org/svn}}}.  For each COIN package, say {{{Pkg}}}, you obtain everything in the package (including all branches and tags) by specifying "{{{svn co https://www.coin-or.org/svn/Pkg/"; if you only want a part of the code, such as the current official release (by convention in the subdirecory {{{trunk}}}, you type {{{svn co https://www.coin-or.org/svn/Pkg/trunk}}}.  Usually, you should specify the target directory where you want your local copy of the code to be stored (such as {{{Coin-Pkg}}}).  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.
     11'''Checks out a directory plus all subdirectories''' from a subversion repository.  The COIN repositories are available from the URL {{{https://www.coin-or.org/svn}}}.  For each COIN package, say {{{Pkg}}}, you obtain everything in the package (including all branches and tags) by specifying "{{{svn co https://www.coin-or.org/svn/Pkg/}}}"; if you only want a part of the code, such as the current official release (by convention in the subdirecory {{{trunk}}}, you type {{{svn co https://www.coin-or.org/svn/Pkg/trunk}}}.  Usually, you should specify the target directory where you want your local copy of the code to be stored (such as {{{Coin-Pkg}}}).  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.
    1212
    1313If 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.
     
    5050=== svn add ===
    5151
    52 You use this command to '''add new files and directories''' to the repository.  You need to give subversion the name of the file or directory as argument.  '''Note that the command acts recursively on directories''', unless you use the "{{{-N}}}" flag. 
     52You use this command to '''add new files and directories''' to the repository.  You need to give subversion the name(s) of the file(s) or directory(ies) as argument.  '''Note that the command acts recursively on directories''', unless you use the "{{{-N}}}" flag.  The file or directory must exist when you use this command.  The file or directory will only be added to the repository when you do a {{{svn commit}}}.
    5353
    54 == svn remove (short form: svn rm) ==
     54=== svn remove (short form: svn rm) ===
    5555
    56 == svn copy (short form: svn cp) ==
     56This command '''deteles a file or directory (including content) in your local copy and marks those files for deletion'''.  The files will be deleted in the repository when you type "{{{svn commit}}}" the next time.  In your local copy, directories will actually remain there, until you commit, but they will be empty.  ''Do not delete them by hand!''.  '''You should always use this command, and never the shell {{{rm}}} command directory on version controlled files and directories.'''   Note that you can can give only one argument at a time to this command, i.e., in order to delete several files, you will have to use this command for each one, e.g., using the {{{xargs}}} UNIX command.
    5757
    58 == svn mkdir ==
     58=== svn copy (short form: svn cp) ===
    5959
    60 == svn merge ==
     60To '''copy a version controlled file in your local copy including its repository history''', you use this command.
    6161
    62 == svn export ==
     62=== svn mkdir ===
     63
     64This command '''creates a new version controlled subdirectory''' in your local copy.  You can later add files in this new directory with '''svn add'''.
     65
     66=== svn merge ===
     67
     68This command is used to '''merge changes in a different part of the repository (like a branch) into the local copy'''.  Please see the [wiki:pm-svn-branches wiki page on branches] to see how you can use it properly.
     69
     70=== svn export ===
     71
     72This command is essentially the same as {{{svn checkout}}}, except that it skips all subversion-internal stuff, and you won't be able to do any further revision management commands in the obtained directories.  This command is used to '''extract files from the repository with the purpose of given the obtained files to someone else''' (e.g., in the form of a tarball).
    6373
    6474== svn proplist (short form: svn plist) ==