Changes between Version 14 and Version 15 of SvnIntro


Ignore:
Timestamp:
01/10/07 16:56:22 (17 years ago)
Author:
etwomey
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SvnIntro

    v14 v15  
    7474 *  Right click !TortoiseSvn, and try merge and/or blame to deal with conflicts
    7575
     76
     77== Create an SVN Branch ==
     78
     79Only an administrator can create a branch. Send an email to: etwomey@usgs.gov stating that you would like to be added to the roms_sed trac user group. Please include contact information and perferred username. '''If you are already registered for ROMS, please inlcude your ROMS username.''' Your SVN and ROMS usernames are to be the same to avoid confusion.
     80
     81== Check to Make Sure You Can See the Repository ==
     82You will need to know your username and password...you should have gotten an e-mail from hosted-projects.
     83Right-click and choose {{{Repo-browser}}} from TortoiseSVN.[[BR]]
     84Enter the URL[https://svn1.hosted-projects.com/cmgsoft/roms_sed/ https://svn1.hosted-projects.com/cmgsoft/roms_sed/][[BR]]
     85Now you should be able to look at the trunk and maybe some branches (depending on ACL), but bubba_branch won't be there yet.
     86(You can also navigate the repository with a browser, but cannot do any of the version control stuff that follows).
     87
     88== Import a Copy of the Trunk ==
     89This process brings a copy of main code from the repository to your computer and places it under SVN control.[[BR]]
     90Make a directory...name it something meaningful to you, for example {{{bubba_roms_sed}}}[[BR]]
     91Right-click on the directory folder icon, and choose {{{SVN Checkout...}}}[[BR]]
     92URL of repository:[[BR]]
     93{{{https://svn1.hosted-projects.com/cmgsoft/roms_sed/trunk}}}[[BR]]
     94Checkout directory:[[BR]]
     95{{{bubba_roms_sed}}}[[BR]]
     96You should see a bunch of stuff stream by like:
     97{{{
     98Added: D:\crs\proj\Adriatic\bubba_roms_sed\ROMS 
     99Added: D:\crs\proj\Adriatic\bubba_roms_sed\ROMS\Tangent 
     100Added: D:\crs\proj\Adriatic\bubba_roms_sed\ROMS\Tangent\tl_rho_eos.F 
     101Added: D:\crs\proj\Adriatic\bubba_roms_sed\ROMS\Tangent\tl_uv3dmix.F 
     102Added: D:\crs\proj\Adriatic\bubba_roms_sed\ROMS\Tangent\tl_def_his.F 
     103Added: D:\crs\proj\Adriatic\bubba_roms_sed\ROMS\Tangent\tl_step2d.F 
     104...
     105Added: D:\crs\proj\Adriatic\bubba_roms_sed\Compilers\CYGWIN-g95.mk 
     106Added: D:\crs\proj\Adriatic\bubba_roms_sed\Compilers\OSF1-f90.mk 
     107Added: D:\crs\proj\Adriatic\bubba_roms_sed\Compilers\Darwin-ifort.mk 
     108Added: D:\crs\proj\Adriatic\bubba_roms_sed\Compilers\AIX-xlf.mk 
     109Added: D:\crs\proj\Adriatic\bubba_roms_sed\Compilers\SunOS-f95.mk 
     110Added: D:\crs\proj\Adriatic\bubba_roms_sed\makefile 
     111Completed: At revision: 243 
     112}}}
     113Click OK.
     114
     115== Create a Branch ==
     116In 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]]
     117From WC at URL:[[BR]]
     118{{{https://svn1.hosted-projects.com/cmgsoft/roms_sed/trunk}}}[[BR]]
     119to URL:[[BR]]
     120{{{https://svn1.hosted-projects.com/cmgsoft/roms_sed/branches/bubba_branch}}}[[BR]]
     121Click OK.[[BR]]
     122(stuff streams by...)
     123
     124The branch will exist in the repository...you can repeat the steps above to make a copy of the branch on your computer (but not in the same directory you made in the example above, because that contains a version of the trunk under SVN control).[[BR]]
     125
     126== Make Changes in Your Branch ==
     127You 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]]
     128Then you can right-click on the filename, and choose {{{Add...}}} under TortoiseSVN, or...[[BR]]
     129You will be given an opportunity later (see next step).[[BR]]
     130If 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 explicitly. That is usually what you want. (Storing output files here is probably a bad idea, because 1) they tend to be big and take a long time to tranfer to the repository 2) they are binary, so the tools used to compare them will not be useful, and 3) we don't have enough storage space at the repository.)
     131
     132== Commit Your Changes ==
     133Navigate to the top directory in your local copy of your branch, e.g., {{{../bubba_roms_sed}}} and right-click. Choose
     134{{{SVN Commit...}}}[[BR]]
     135Commit to:  ''{{{https://svn1.hosted-projects.com/cmgsoft/roms_sed/branches/bubba_branch}}}'' [[BR]]
     136Message:  ''(add a meaningful comment here)'' [[BR]]
     137Changes made:  ''(Will show files with changes)'' [[BR]]
     138If 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]]
     139Click OK.
     140{{{
     141Adding: bubba_roms_sed\foo 
     142Sending content: bubba_roms_sed\foo 
     143Completed: At revision: 244 
     144}}}
     145
     146
     147== Work Cycle ==
     148You can Import this branch to another computer...that is the best way to synchronize, say, a desktop at work with a travelling laptop.[[BR]]
     149After that, the cycle is:[[BR]]
     150At the top local directory, right-click, and under TortoiseSVN {{{Check for modifications}}}. Click Check Repository.[[BR]]
     151Make changes.[[BR]]
     152{{{Check for modifications}}} or {{{SVN Update}}} (again..can't hurt).[[BR]]
     153Finally, {{{SVN Commit...}}}[[BR]]
     154
     155
    76156'''Notes'''
    77157