Changes between Version 15 and Version 16 of SvnIntro


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

--

Legend:

Unmodified
Added
Removed
Modified
  • SvnIntro

    v15 v16  
    7575
    7676
    77 == Create an SVN Branch ==
     77== SVN Tutorial ==
     78
     79'''Creating a ROMS_Sed Branch'''
    7880
    7981Only 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.
    8082
    81 == Check to Make Sure You Can See the Repository ==
     83'''Check to Make Sure You Can See the Repository'''
    8284You will need to know your username and password...you should have gotten an e-mail from hosted-projects.
    8385Right-click and choose {{{Repo-browser}}} from TortoiseSVN.[[BR]]
     
    8688(You can also navigate the repository with a browser, but cannot do any of the version control stuff that follows).
    8789
    88 == Import a Copy of the Trunk ==
     90'''Import a Copy of the Trunk'''
    8991This process brings a copy of main code from the repository to your computer and places it under SVN control.[[BR]]
    9092Make a directory...name it something meaningful to you, for example {{{bubba_roms_sed}}}[[BR]]
     
    113115Click OK.
    114116
    115 == Create a Branch ==
     117'''Create a Branch'''
    116118In 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]]
    117119From WC at URL:[[BR]]
     
    124126The 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]]
    125127
    126 == Make Changes in Your Branch ==
     128'''Make Changes in Your Branch'''
    127129You 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]]
    128130Then you can right-click on the filename, and choose {{{Add...}}} under TortoiseSVN, or...[[BR]]
     
    130132If 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.)
    131133
    132 == Commit Your Changes ==
     134'''Commit Your Changes'''
    133135Navigate to the top directory in your local copy of your branch, e.g., {{{../bubba_roms_sed}}} and right-click. Choose
    134136{{{SVN Commit...}}}[[BR]]
     
    145147
    146148
    147 == Work Cycle ==
     149'''Work Cycle'''
    148150You can Import this branch to another computer...that is the best way to synchronize, say, a desktop at work with a travelling laptop.[[BR]]
    149151After that, the cycle is:[[BR]]