Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 3 and Version 4 of code/tools/SVN


Ignore:
Timestamp:
Feb 17, 2008, 11:47:12 PM (17 years ago)
Author:
nicolasc
Comment:

resolved

Legend:

Unmodified
Added
Removed
Modified
  • code/tools/SVN

    v3 v4  
    88svn add myFile.cc myFile.h
    99svn rm trash-folder
     10svn resolved somefile.cc
    1011svn cp https://svn.orxonox.net/orxonox/trunk https://svn.orxonox.net/orxonox/branches/test
    1112svn diff
    12 svn resolve somefile.cc
    1313svn revert
    1414}}}
     
    1919the checkout command is used to create a local copy of a svn subtree on the local computer.
    2020
    21 the syntax used is ''svn co <remote-path> <local-path>'', if <local-path> is omitted the last remote folder will be used as <local-path>.
     21the syntax used is ''svn co -r <revision> <remote-path> <local-path>'', if -r <revision> is omitted, the HEAD revision is assumed, which is also the newest one, if <local-path> is omitted the last remote folder will be used as <local-path>.
    2222
    2323This will create a folder orxonox-trunk with the contents of the trunk
     
    2626}}}
    2727
    28 This will create a folder called test, with the content of the test branch.
     28This will create a folder called test, with the content of the test branch at revision 200.
    2929{{{
    30 svn co https://svn.orxonox.net/orxonox/branches/test
     30svn co -r 200 https://svn.orxonox.net/orxonox/branches/test
    3131}}}
    3232
     
    4444}}}
    4545
    46 Updates may cause conflicts if the remote and local file has been changed in the same place. to resolve a conflict see [wiki:SVN#resolve here].
     46Updates 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].
    4747
    4848=== checkin (ci) ===
     
    5454}}}
    5555
    56 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#update(up) update].
     56A 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].
    5757
     58=== add ===
     59adding a new file to the local svn copy, that it get upload with the next commit. the syntax is ''svn add <file>''
     60
     61this will add the files myFile.cc and myFile.h in the folder myFolder to the svn
     62{{{
     63svn add myFolder/myFile.cc myFolder/myFile.h
     64}}}
     65
     66=== remove (rm) ===
     67also called delete, which deletes an item from the svn tree. please note that this also removed the file/folder from the local harddrive. the syntax is ''svn rm <file/folder>''. you still need to commit it to the server.
     68
     69this will remove the file myOldFile.cc from the svn tree
     70{{{
     71svn rm myOldFile.cc
     72}}}
     73
     74=== resolved ===
     75if 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.
     76
     77this will resolve the conflict in in myConflictFile.cc, and make the copy committable again.
     78{{{
     79svn resolved myConflictFile.cc
     80}}}
     81