Last modified 5 years ago Last modified on 2015-08-03 15:12:08

For this example, the username is bubba, and the fictitious roms_sed repository on repo_URL are used. The principals are the same for our new repository at and the m-cmg program repository.

Ask an administrator to edit the Access Control List (ACL)

The Administrator needs to do the following:
Go to the repo_URL ,
Log in as the account holder,
Pull down Manage ACLs,
Hit Go,
and make an entry like:

bubba = rw
csherwood = r
jcwarner = r
arango = r
rsignell = r

Check to Make Sure You Can See the Repository

You will need to know your username and should have gotten an e-mail from Right-click and choose Repo-browser from TortoiseSVN.
Enter the repo_URL
Now you should be able to look at the trunk and maybe some branches (depending on ACL), but bubba_branch won't be there yet. (You can also navigate the repository with a browser, but cannot do any of the version control stuff that follows).

Import a Copy of the Trunk

This process brings a copy of main code from the repository to your computer and places it under SVN control.
Make a it something meaningful to you, for example bubba_roms_sed
Right-click on the directory folder icon, and choose SVN Checkout...
URL of repository:
Checkout directory:
You should see a bunch of stuff stream by like:

Added: D:\crs\proj\Adriatic\bubba_roms_sed\ROMS  
Added: D:\crs\proj\Adriatic\bubba_roms_sed\ROMS\Tangent  
Added: D:\crs\proj\Adriatic\bubba_roms_sed\ROMS\Tangent\tl_rho_eos.F  
Added: D:\crs\proj\Adriatic\bubba_roms_sed\ROMS\Tangent\tl_uv3dmix.F  
Added: D:\crs\proj\Adriatic\bubba_roms_sed\ROMS\Tangent\tl_def_his.F  
Added: D:\crs\proj\Adriatic\bubba_roms_sed\ROMS\Tangent\tl_step2d.F  
Added: D:\crs\proj\Adriatic\bubba_roms_sed\Compilers\  
Added: D:\crs\proj\Adriatic\bubba_roms_sed\Compilers\  
Added: D:\crs\proj\Adriatic\bubba_roms_sed\Compilers\  
Added: D:\crs\proj\Adriatic\bubba_roms_sed\Compilers\  
Added: D:\crs\proj\Adriatic\bubba_roms_sed\Compilers\  
Added: D:\crs\proj\Adriatic\bubba_roms_sed\makefile  
Completed: At revision: 243  

Click OK.

Create a Branch

In 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).
From WC at URL:
to URL:
Click OK.
(stuff streams by...)

The branch will exist in the 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).

Make Changes in Your Branch

You 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).
Then you can right-click on the filename, and choose Add... under TortoiseSVN, or...
You will be given an opportunity later (see next step).
If 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.)

Commit Your Changes

Navigate to the top directory in your local copy of your branch, e.g., ../bubba_roms_sed and right-click. Choose SVN Commit...
Commit to: https://repo_URL/branches/bubba_branch
Message: (add a meaningful comment here)
Changes made: (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
Click OK.

Adding: bubba_roms_sed\foo  
Sending content: bubba_roms_sed\foo  
Completed: At revision: 244  

Work Cycle

You can Import this branch to another computer...that is the best way to synchronize, say, a desktop at work with a travelling laptop.
After that, the cycle is:
At the top local directory, right-click, and under TortoiseSVN Check for modifications. Click Check Repository.
Make changes.
Check for modifications or SVN Update (again..can't hurt).
Finally, SVN Commit...