Changes between Version 35 and Version 36 of HowToSVN
- Timestamp:
- 08/28/09 00:14:59 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HowToSVN
v35 v36 24 24 25 25 {{{ 26 27 26 cd /path/to/your/local/copy/trunk 27 svn switch https://svn.osgeo.org/grass/grass/branches/develbranch_6 . 28 28 }}} 29 29 … … 32 32 To find other branch names, check [http://trac.osgeo.org/grass/browser/grass/branches/ here]. 33 33 34 To be able to merge new files between branches both branches will have to appear to be from the same master repository. Subversion does not recognize `http://` and `https://` to be the same. In those cases the following command can be given to reassign http to https: 35 36 {{{ 37 svn switch --relocate \ 38 http://svn.osgeo.org/grass/grass/branches/releasebranch_6_4 \ 39 https://svn.osgeo.org/grass/grass/branches/releasebranch_6_4 . 40 }}} 34 41 35 42 == SVN usage == … … 48 55 49 56 {{{ 50 57 svn up raster/r.digit/ 51 58 }}} 52 59 … … 58 65 View changes: 59 66 {{{ 60 67 svn diff raster/r.digit/ 61 68 }}} 62 69 … … 64 71 (run from top dir not the module dir. There are many "main.c" and "description.html" files to choose from and without the directory name it is hard to figure out where your patch should be applied) 65 72 {{{ 66 73 svn diff raster/r.digit/ > fancy_new.diff 67 74 }}} 68 75 … … 96 103 * '''Please make the {{{-m}}} commit log message meaningful'''. It is your chance to explain "why". If you refer to bug numbers in the form "#123" the Trac system will automatically create a link from the message to the bug report. The same is true for revision changes, e.g. "r12345". 97 104 {{{ 98 99 100 105 svn diff raster/r.digit/main.c | less 106 svn commit raster/r.digit/main.c \ 107 -m "fix bug #123: uninitialized variable (merge r12345 from trunk)" 101 108 }}} 102 109 … … 107 114 * Example 1: pull a change from trunk into the 6.3 release branch: 108 115 {{{ 109 110 111 112 113 114 116 cd releasebranch_6_3/ 117 svn up raster/r.digit/ 118 svn merge -c 30749 https://svn.osgeo.org/grass/grass/trunk 119 svn diff raster/r.digit/main.c 120 svn commit raster/r.digit/main.c \ 121 -m "fix bug #456: unsafe quoting (merge from trunk, r30749)" 115 122 }}} 116 123 … … 119 126 * Example 2: merge a change from the 6.4 development branch into GRASS 7 (trunk): 120 127 {{{ 121 122 123 124 125 128 cd trunk/ 129 svn up raster/r.digit/ 130 svn merge -c 31154 https://svn.osgeo.org/grass/grass/branches/develbranch_6 131 svn diff raster/r.digit/main.c 132 svn commit raster/r.digit/main.c 126 133 }}} 127 134 … … 147 154 148 155 {{{ 149 svn checkout --non-recursive https://svn.osgeo.org/grass/grass-web/trunk/ trunk/ 156 svn checkout --non-recursive \ 157 https://svn.osgeo.org/grass/grass-web/trunk/ trunk/ 150 158 }}} 151 159 … … 179 187 180 188 181 182 183 189 == See Also == 184 190