Changes between Version 4 and Version 5 of pm-svn-cmds
- Timestamp:
- Jun 2, 2006 1:46:38 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
pm-svn-cmds
v4 v5 9 9 === svn checkout (short form: svn co) === 10 10 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. 12 12 13 13 If 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. … … 50 50 === svn add === 51 51 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.52 You 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}}}. 53 53 54 == svn remove (short form: svn rm)==54 === svn remove (short form: svn rm) === 55 55 56 == svn copy (short form: svn cp) == 56 This 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. 57 57 58 == svn mkdir==58 === svn copy (short form: svn cp) === 59 59 60 == svn merge == 60 To '''copy a version controlled file in your local copy including its repository history''', you use this command. 61 61 62 == svn export == 62 === svn mkdir === 63 64 This 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 68 This 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 72 This 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). 63 73 64 74 == svn proplist (short form: svn plist) ==