Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 25 and Version 26 of code/tools/SVN


Ignore:
Timestamp:
Nov 25, 2008, 2:36:15 PM (16 years ago)
Author:
bknecht
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • code/tools/SVN

    v25 v26  
    8989<hr style="margin:0px;">
    9090<br/>
    91 <h3 style="margin:0;">update (up)</h3>
     91<h3 style="margin:0;" id="update">update (up)</h3>
    9292}}}
    9393Update 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.
     
    110110<hr style="margin:0px;">
    111111<br/>
    112 <h3 style="margin:0;">commit (ci)</h3>
     112<h3 style="margin:0;" id="commit">commit (ci)</h3>
    113113}}}
    114114Sometimes also called checkin, does the opposite of checkout or update, it upload changes made to the local copy to the server.
     
    121121}}}
    122122
    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#updateup update].
    124 {{{
    125 #!html
    126 <hr style="margin:0px;">
    127 <br/>
    128 <h3 style="margin:0;">add</h3>
     123A 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>
    129129}}}
    130130Adding a new file to the local svn copy, that it gets uploaded with the next commit.
     
    141141<hr style="margin:0px;">
    142142<br/>
    143 <h3 style="margin:0;">remove (rm)</h3>
     143<h3 style="margin:0;" id="remove">remove (rm)</h3>
    144144}}}
    145145Also called delete (del), which deletes an item from the svn tree. Please note that this also removes the file/folder from the local harddrive.
     
    155155<hr style="margin:0px;">
    156156<br/>
    157 <h3 style="margin:0;">move (mv)</h3>
     157<h3 style="margin:0;" id="move">move (mv)</h3>
    158158}}}
    159159Sometimes called rename (ren) - as a rename is the same as a move. The command simplifies the rearranging of files in the svn tree.
     
    174174<hr style="margin:0px;">
    175175<br/>
    176 <h3 style="margin:0;">copy (cp)</h3>
     176<h3 style="margin:0;" id="copy">copy (cp)</h3>
    177177}}}
    178178A 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.
     
    188188<hr style="margin:0px;">
    189189<br/>
    190 <h3 style="margin:0;">resolved</h3>
     190<h3 style="margin:0;" id="resolved">resolved</h3>
    191191}}}
    192192If 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.
     
    202202<hr style="margin:0px;">
    203203<br/>
    204 <h3 style="margin:0;">revert</h3>
     204<h3 style="margin:0;" id="revert">revert</h3>
    205205}}}
    206206One 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.
     
    216216<hr style="margin:0px;">
    217217<br/>
    218 <h3 style="margin:0;">diff (di)</h3>
     218<h3 style="margin:0;" id="diff">diff (di)</h3>
    219219}}}
    220220Another 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.
     
    230230<hr style="margin:0px;">
    231231<br/>
    232 <h3 style="margin:0;">merge</h3>
     232<h3 style="margin:0;" id="merge">merge</h3>
    233233}}}
    234234