Changes between Version 25 and Version 26 of code/tools/SVN
- Timestamp:
- Nov 25, 2008, 2:36:15 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
code/tools/SVN
v25 v26 89 89 <hr style="margin:0px;"> 90 90 <br/> 91 <h3 style="margin:0;" >update (up)</h3>91 <h3 style="margin:0;" id="update">update (up)</h3> 92 92 }}} 93 93 Update is closely related to checkout, as it also download - or updates - the svn tree. while checkout is normally only used once, update is used all the time. … … 110 110 <hr style="margin:0px;"> 111 111 <br/> 112 <h3 style="margin:0;" >commit (ci)</h3>112 <h3 style="margin:0;" id="commit">commit (ci)</h3> 113 113 }}} 114 114 Sometimes also called checkin, does the opposite of checkout or update, it upload changes made to the local copy to the server. … … 121 121 }}} 122 122 123 A commit is only possible if the local version is up-to-date. If it isn't you will get an error, and the commit will fail. The solution then is to do an [wiki:SVN#update upupdate].124 {{{ 125 #!html 126 <hr style="margin:0px;"> 127 <br/> 128 <h3 style="margin:0;" >add</h3>123 A commit is only possible if the local version is up-to-date. If it isn't you will get an error, and the commit will fail. The solution then is to do an [wiki:SVN#update update]. 124 {{{ 125 #!html 126 <hr style="margin:0px;"> 127 <br/> 128 <h3 style="margin:0;" id="add">add</h3> 129 129 }}} 130 130 Adding a new file to the local svn copy, that it gets uploaded with the next commit. … … 141 141 <hr style="margin:0px;"> 142 142 <br/> 143 <h3 style="margin:0;" >remove (rm)</h3>143 <h3 style="margin:0;" id="remove">remove (rm)</h3> 144 144 }}} 145 145 Also called delete (del), which deletes an item from the svn tree. Please note that this also removes the file/folder from the local harddrive. … … 155 155 <hr style="margin:0px;"> 156 156 <br/> 157 <h3 style="margin:0;" >move (mv)</h3>157 <h3 style="margin:0;" id="move">move (mv)</h3> 158 158 }}} 159 159 Sometimes called rename (ren) - as a rename is the same as a move. The command simplifies the rearranging of files in the svn tree. … … 174 174 <hr style="margin:0px;"> 175 175 <br/> 176 <h3 style="margin:0;" >copy (cp)</h3>176 <h3 style="margin:0;" id="copy">copy (cp)</h3> 177 177 }}} 178 178 A command which is rarely used on the local tree - why would someone need a file twice in the same tree? - but it is rather useful to create new branches. Though it is normally done by the supervisors, it can be done by the students. … … 188 188 <hr style="margin:0px;"> 189 189 <br/> 190 <h3 style="margin:0;" >resolved</h3>190 <h3 style="margin:0;" id="resolved">resolved</h3> 191 191 }}} 192 192 If a conflict arises - this normally happens if someone changes a file on the server (committed it) while you were doing changes in the same place. This command '''does not solve''' the conflict, but it removes the other unnecessary files. … … 202 202 <hr style="margin:0px;"> 203 203 <br/> 204 <h3 style="margin:0;" >revert</h3>204 <h3 style="margin:0;" id="revert">revert</h3> 205 205 }}} 206 206 One of the major advantages of a version control system, is that you can always revert to a known saved state - in this case the last updated local revision. Revert removes all local changes and restores the file to a state prior editing, i.e discarding all local changes. … … 216 216 <hr style="margin:0px;"> 217 217 <br/> 218 <h3 style="margin:0;" >diff (di)</h3>218 <h3 style="margin:0;" id="diff">diff (di)</h3> 219 219 }}} 220 220 Another rarely used but very useful command. It shows the difference between the downloaded revision and the current state, which basically what will be uploaded at the next commit. It is also useful to check if all new files have been added to the svn tree - it happens very often, that there are two commits in short time, first the updates, then the new files. … … 230 230 <hr style="margin:0px;"> 231 231 <br/> 232 <h3 style="margin:0;" >merge</h3>232 <h3 style="margin:0;" id="merge">merge</h3> 233 233 }}} 234 234