Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 5 and Version 6 of code/tools/SVN


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

di, change checkin to commit

Legend:

Unmodified
Added
Removed
Modified
  • code/tools/SVN

    v5 v6  
    1111svn cp https://svn.orxonox.net/orxonox/trunk https://svn.orxonox.net/orxonox/branches/test
    1212svn resolved somefile.cc
     13svn revert
    1314svn diff
    14 svn revert
    1515}}}
    1616
     
    4747Updates 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].
    4848
    49 === checkin (ci) ===
    50 sometime also called commit, does the opposite of checkout or update, it upload changes made to the local the to the server. The syntax is ''svn ci -m <commit message> <local-path>'', if <local-path> is omitted, the current directory is assumed, if -m <commit message> is ommited, an editor will pop up where you can (and should) write a meaningful commit message.
     49=== commit (ci) ===
     50sometime also called checkin, does the opposite of checkout or update, it upload changes made to the local the to the server. The syntax is ''svn ci -m <commit message> <local-path>'', if <local-path> is omitted, the current directory is assumed, if -m <commit message> is ommited, an editor will pop up where you can (and should) write a meaningful commit message.
    5151
    5252this will checkin the current directory including subfolders with the comment "initial upload"
     
    5555}}}
    5656
    57 A checkin 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].
     57A 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].
    5858
    5959=== add ===
     
    7474
    7575=== move (mv) ===
    76 sometime called rename - as a rename is the same as a move. The command simplifies the rearranging of files in the svn tree. the syntax is ''svn mv <source files> <target-folder>''
     76sometime called rename (ren) - as a rename is the same as a move. The command simplifies the rearranging of files in the svn tree. the syntax is ''svn mv <source files> <target-folder>''
    7777
    7878this will move the files myFile.cc and myFile.h to myFolder
     
    8383this will rename the file myFiel.cc to myFile.cc - to correct a typo. please note the mv and rename are the same command
    8484{{{
    85 svn rename myFiel.cc myfile.cc
     85svn ren myFiel.cc myfile.cc
    8686}}}
    8787
     
    102102}}}
    103103
     104=== revert ===
     105One 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.
     106
     107this will discard all local changes made to myFile.cc
     108{{{
     109svn revert myFile.cc
     110}}}
     111
     112=== diff (di) ===
     113another rarely used but very useful command. it shows you 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. the syntax is ''svn di <local-path>'', if <local-path> is omitted, the current directory is assumed.
     114
     115this will show - print to the console - the current changes made to the revision
     116{{{
     117svn di .
     118}}}