Changes between Version 1 and Version 2 of SvnTutorial


Ignore:
Timestamp:
12/22/06 21:15:57 (18 years ago)
Author:
csherwood
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SvnTutorial

    v1 v2  
    22== Edit the Access Control List (ACL) ==
    33
    4 Have someone with Administrator priviledges go to [https://www.hosted-projects.com/ https://www.hosted-projects.com/] , log in as the account holder, pull down {{{Manage ACLs}}}, hit '''Go''', and make an entry like:
     4Say your username is bubba. Have someone with Administrator privileges do the following:[[BR]]
     5Go to [https://www.hosted-projects.com/ https://www.hosted-projects.com/] , [[BR]]
     6Log in as the account holder, [[BR]]
     7Pull down {{{Manage ACLs}}}, [[BR]]
     8Hit '''Go''', [[BR]]
     9and make an entry like:
    510{{{
    611[roms_sed:/branches/bubba_branch]
     
    1217}}}
    1318
     19== Check to Make Sure You Can See the Repository ==
     20Right-click and choose {{{Repo-browser}}} from TortoiseSVN.[[BR]]
     21Enter the URL {{{https://svn1.hosted-projects.com/cmgsoft/roms_sed/}}}[[BR]]
     22Now you should be able to look at the trunk and maybe some branches (depending on ACL), but bubba_branch won't be there yet.
     23
     24
     25== Import a Copy of the Trunk ==
     26This process brings a copy of main code from the repository to your computer and places it under SVN control.[[BR]]
     27Make a directory...name it something meaningful to you, for example {{{Bubba_ROMS_SED}}}[[BR]]
     28Right-click on the directory folder icon, and choose {{{SVN Checkout...}}}
     29URL of repository:[[BR]]
     30{{{https://svn1.hosted-projects.com/cmgsoft/roms_sed/trunk}}}[[BR]]
     31Checkout directory:
     32{{{Bubba_ROMS_SED}}}[[BR]]
     33You should see a bunch of stuff stream by like:
     34{{{
     35Added: D:\crs\proj\Adriatic\bubba_roms_sed\ROMS 
     36Added: D:\crs\proj\Adriatic\bubba_roms_sed\ROMS\Tangent 
     37Added: D:\crs\proj\Adriatic\bubba_roms_sed\ROMS\Tangent\tl_rho_eos.F 
     38Added: D:\crs\proj\Adriatic\bubba_roms_sed\ROMS\Tangent\tl_uv3dmix.F 
     39Added: D:\crs\proj\Adriatic\bubba_roms_sed\ROMS\Tangent\tl_def_his.F 
     40Added: D:\crs\proj\Adriatic\bubba_roms_sed\ROMS\Tangent\tl_step2d.F 
     41...
     42Added: D:\crs\proj\Adriatic\bubba_roms_sed\Compilers\CYGWIN-g95.mk 
     43Added: D:\crs\proj\Adriatic\bubba_roms_sed\Compilers\OSF1-f90.mk 
     44Added: D:\crs\proj\Adriatic\bubba_roms_sed\Compilers\Darwin-ifort.mk 
     45Added: D:\crs\proj\Adriatic\bubba_roms_sed\Compilers\AIX-xlf.mk 
     46Added: D:\crs\proj\Adriatic\bubba_roms_sed\Compilers\SunOS-f95.mk 
     47Added: D:\crs\proj\Adriatic\bubba_roms_sed\makefile 
     48Completed: At revision: 243 
     49}}}
     50Click OK.
     51
     52== Create a Branch ==
     53In TortoiseSVN, choose {{{Branch/tag}}}. (To see this option in TortoiseSVN, you have to right-click on a directory that is under SVN control...but it does not have to be related to the project at hand).[[BR]]
     54From WC at URL:[[BR]]
     55{{{https://svn1.hosted-projects.com/cmgsoft/roms_sed/trunk}}}[[BR]]
     56to URL:[[BR]]
     57{{{https://svn1.hosted-projects.com/cmgsoft/roms_sed/branches/bubba_branch}}}[[BR]]
     58Click OK.[[BR]]
     59
     60The branch will exist in the repository... you can repeat the steps above to make a copy of the branch on your computer.[[BR]]
     61
     62== Make Changes in Your Branch ==
     63You can make new files, change existing files, etc. Only existing files will automatically be under SVN control. To add new files, create them in a directory under SVN control (or copy them in from somewhere else).[[BR]]
     64Then, you can right-click on the filename, and choose {{{Add...}}} under TortoiseSVN, or...[[BR]]
     65You will be given an opportunity later (see next step).[[BR]]
     66If you compile the code and generate a bunch of .f90 and .o files, or run the model and generate output, they will not be under SVN control unless you add them eThat is usually what you want.
     67
     68== Commit Your Changes ==
     69Navigate to the top directory in your local copy of your branch, e.g., {{{../Bubba_ROMS_SED}}} and right-click. Choose
     70{{{SVN Commit...}}}[[BR]]
     71Commit to:[[BR]]
     72{{{https://svn1.hosted-projects.com/cmgsoft/roms_sed/branches/bubba_branch}}}[[BR]]
     73Message:[[BR]]
     74(add a meaningful comment here)
     75Changes made:[[BR]]
     76(Will show files with changes. If the {{{Show unversioned files}}} box is checked, you will see any files you added to the directory. This is your opportunity place them under SVN control. Say you made one named {{{foo}}} that you want to add...check it and[[BR]]
     77Click OK.
     78{{{
     79Adding: Bubba_ROMS_SED\foo 
     80Sending content: Bubba_ROMS_SED\foo 
     81Completed: At revision: 244 
     82}}}
     83
     84
     85== Work Cycle ==
     86You can Import this branch to another computer...that is the best way to synchronize, say, a desktop at work with a travelling laptop.[[BR]]
     87After that, the cycle is:[[BR]]
     88At the top local directory, right-click, and under TortoiseSVN {{{'''Check for modifications'''}}}. Click Check Repository.[[BR]]
     89Make changes.[[BR]]
     90{{{'''Check for modifications'''}}} or {{{'''SVN Update'''}}} (again..can't hurt).[[BR]]
     91Finally, {{{'''SVN Commit...'''}}}[[BR]]
    1492
    1593
    1694
     95
     96
     97
     98
     99