Changes between Version 56 and Version 57 of Developers/SVN_QuickReference
- Timestamp:
- 2018-11-09T22:29:26+01:00 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Developers/SVN_QuickReference
v56 v57 1 = S ubVersioN basics1 = SVN quick reference 2 2 3 3 Last edition on '''[[Wikinfo(changed_ts)]]''' by '''[[Wikinfo(changed_by)]]''' 4 4 5 [[PageOutline(2-3)]] 6 7 __For reference, browse to http://svnbook.red-bean.com__ 5 __For reference, browse to__ http://svnbook.red-bean.com 8 6 9 7 {{{#!sh … … 20 18 }}} 21 19 22 == Versioning23 24 20 {{{#!th 25 !Add/Remove item \\ 26 (file or folder) 21 == Basic use 22 }}} 23 {{{#!th 24 == Properties 25 }}} 26 {{{#!th 27 == Branching / Merging 28 }}} 29 |- 30 {{{#!td 31 Download a working copy 32 {{{#!sh 33 $ svn {checkout,co} [${WCPATH}] 34 }}} 35 !Add/Remove item (file or folder) 36 {{{#!sh 37 $ svn {add,del,rm} ${WCPATH} 38 }}} 39 Informations on working copy 40 {{{#!sh 41 $ svn info [{${WCPATH},${URL}}][@${REV}] 42 }}} 43 Local status wrt the repository 44 {{{#!sh 45 $ svn status [-[qu]] [${WCPATH}] 46 }}} 47 Local changes 48 {{{#!sh 49 $ svn {diff,revert} ${WCPATH} 50 }}} 51 Push modififcations to repository 52 {{{#!sh 53 $ svn {ci,commit} [-m 'one-liner message'] [${WCPATH}] 54 }}} 55 For modified externals, add `--include-externals` option 56 List commit messages 57 {{{#!sh 58 $ svn log [{${URL},${WCPATH}}[@${REV}]] 59 }}} 27 60 }}} 28 61 {{{#!td 29 {{{#!sh 30 $ svn {add,del} ${WCPATH} 31 }}} 32 }}} 33 |- 34 {{{#!th 35 Working copy 36 }}} 37 {{{#!td 38 Display information about a local or remote item 39 40 {{{#!sh 41 $ svn info [{${WCPATH},${URL}}][@${REV}] 42 }}} 43 44 Display the current state of the working path wrt the one mirrored in the repository 45 46 {{{#!sh 47 $ svn status [-[qu]] [${WCPATH}] 48 }}} 49 50 Display all commits performed to your working path since its creation 51 52 {{{#!sh 53 $ svn log --verbose --stop-on-copy [${WCPATH}] 54 }}} 55 }}} 56 |- 57 {{{#!th 58 Revert changes \\ 59 (local) 60 }}} 61 {{{#!td 62 {{{#!sh 63 $ svn revert ${WCPATH} 64 }}} 65 }}} 66 |- 67 {{{#!th 68 Push changes 69 }}} 70 {{{#!td 71 {{{#!sh 72 $ svn ci [-m 'one-liner log message'] [${WCPATH}] 73 }}} 74 For modified externals, add `--include-externals` option 75 }}} 76 77 == Properties 78 79 {{{#!th 80 Set properties 81 }}} 82 {{{#!td 83 `svn:keywords Id`: log record of last commit in routine 62 `svn:keywords Id`: record commit infos in routine 84 63 {{{#!sh 85 64 $ svn propset svn:keywords Id on ${WCPATH} 86 65 }}} 87 66 `svn:mime-type`: syntax highlighting and merging process 88 89 `svn:executable`: executable permissions of shell scripts 67 {{{#!sh 68 $ svn propset svn:mime-type ... ${WCPATH} 69 }}} 70 `svn:executable`: set permissions for scripts 90 71 {{{#!sh 91 72 $ svn propset svn:executable on ${WCPATH} 92 73 }}} 93 74 `svn:externals`: defining external sources 94 Single external example 75 - Single external 95 76 {{{#!sh 96 77 $ svn propset svn:externals ${URL}[@${REV}] ${WCPATH} 97 78 }}} 98 Multi externals example using an editor 79 - Multi externals 99 80 {{{#!sh 100 81 $ svn propedit svn:externals ${WCPATH} 101 82 }}} 102 83 }}} 103 |-104 {{{#!th105 Delete property106 }}}107 84 {{{#!td 108 {{{#!sh 109 $ svn propdel ${SVN_PROPERTY} ${WCPATH} 110 }}} 111 }}} 112 113 == Branching / Merging 114 115 {{{#!th 116 Manage \\ 117 branches 118 }}} 119 {{{#!td 120 Creation 85 Create a branch (copying) 121 86 {{{#!sh 122 87 $ svn copy {${URL},${WCPATH}}[@${REV}] {${URL},${WCPATH}} 123 88 }}} 124 89 Update WC to a new URL 125 Mirror a different branch $i.e$ traversing branch in the same repository (__hazardous!! __)90 - Mirror a different branch $i.e$ traversing branch in the same repository (__hazardous!! __) 126 91 {{{#!sh 127 92 $ svn switch ${URL}[@${REV}] [${WCPATH}] 128 93 }}} 129 Relocate to a different URL $i.e$ keep the same branch but move to a new server or URL scheme94 - Relocate to a different URL $i.e$ keep the same branch but move to a new server or URL scheme 130 95 {{{#!sh 131 96 $ svn switch --relocate ${URL1} ${URL2} 132 97 }}} 133 Removal 98 Merging sources 99 {{{#!sh 100 $ svn merge {${URL1},${WCPATH1}}[@${REV1}] [{${URL1},${WCPATH2}}[@${REV2}]] [${WCPATH}] 101 }}} 102 Remove a branch 134 103 {{{#!sh 135 104 $ svn rm {${URL},${WCPATH}} 136 105 }}} 137 106 }}} 138 |-139 {{{#!th140 Merging \\141 sources142 }}}143 {{{#!td144 {{{#!sh145 $ svn merge {${URL1},${WCPATH1}}[@${REV1}] [{${URL1},${WCPATH2}}[@${REV2}]] [${WCPATH}]146 }}}147 }}}148