Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 9 and Version 10 of code/tools/SVN


Ignore:
Timestamp:
Feb 18, 2008, 12:39:53 AM (17 years ago)
Author:
nicolasc
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • code/tools/SVN

    v9 v10  
    1818
    1919If not noted otherwise all commands are recursive.
    20 
     20----
    2121=== checkout (co) ===
    2222The checkout command is used to create a local copy of a svn subtree on the local computer.
     
    3333svn co -r 200 https://svn.orxonox.net/orxonox/branches/test
    3434}}}
    35 
     35----
    3636=== update (up) ===
    3737update 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.
     
    5050
    5151Updates may cause conflicts if the remote and local file has been changed in the same place. to resolve a conflict see [wiki:SVN#resolved here].
    52 
     52----
    5353=== commit (ci) ===
    5454Sometime also called checkin, does the opposite of checkout or update, it upload changes made to the local the to the server.
     
    6262
    6363A 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].
    64 
     64----
    6565=== add ===
    6666Adding a new file to the local svn copy, that it get upload with the next commit.
     
    7272svn add myFolder/myFile.cc myFolder/myFile.h
    7373}}}
    74 
     74----
    7575=== remove (rm) ===
    7676Also called delete (del), which deletes an item from the svn tree. please note that this also removed the file/folder from the local harddrive.
     
    8282svn rm myOldFile.cc
    8383}}}
    84 
     84----
    8585=== move (mv) ===
    8686Sometime called rename (ren) - as a rename is the same as a move. The command simplifies the rearranging of files in the svn tree.
     
    9797svn ren myFiel.cc myfile.cc
    9898}}}
    99 
     99----
    100100=== copy (cp) ===
    101101A 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.
     
    107107svn cp https://svn.orxonox.net/orxonox/trunk https://svn.orxonox.net/orxonox/branches/test
    108108}}}
    109 
     109----
    110110=== resolved ===
    111111If a conflict arises - this normally happens if someone change 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.
     
    117117svn resolved myConflictFile.cc
    118118}}}
    119 
     119----
    120120=== revert ===
    121121One 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.
     
    127127svn revert myFile.cc
    128128}}}
    129 
     129----
    130130=== diff (di) ===
    131131Another 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, the there are two commits in short time, first the updates, then the new files.