--- mitgcm.org/usingcvstoget.html 2001/02/09 18:58:02 1.1 +++ mitgcm.org/usingcvstoget.html 2008/04/30 15:05:26 1.7 @@ -8,7 +8,7 @@

-Obtaining MITgcmUV source using CVS

+Obtaining MITgcm source using CVS

Environment

@@ -23,7 +23,7 @@ To obtain the latest source (with CVS information)
-
cvs co -d directory models/MITgcmUV
+
cvs co -d directory -P MITgcm
This creates a directory called directory. If directory already exists this command updates your code based on the repository (see "Getting @@ -31,6 +31,13 @@ with contain a directory "CVS". This contains information required by CVS to keep track of your file versions with respect to the repository. Don't edit the files in CVS. +

You can also "check out" a particular version of the code. We use the +notion of checkpoints to indicate the evolution of the code. To specify +which "tag" you require use the -r option: +

+
cvs co -d directory -P -r release1_beta1 MITgcm
+
+

Show changes that YOU have made

If you are running into difficulties it is very useful to see the changes @@ -62,7 +69,7 @@ You can download and merge updates from the repository to bring you working code up to date:
-
cvs update
+
cvs update -d -P
will work recursively on all files in the current directory and below. To update just a specific file or @@ -70,6 +77,16 @@
cvs update file
+You can also update to a specific version, just as you could check out +a specific version. +
+
cvs update -d -P -r release1_beta1
+
+If you checked out a specific version and want to update to the very latest +use the -A option will remove associated with a specific version as follows: +
+
cvs update -d -P -A
+
"cvs update" produces output to the terminal with the following meanings:
  @@ -107,14 +124,13 @@
-
 
-When conflicts arise, the sections of code are both kept and surrounded +

When conflicts arise, the sections of code are both kept and surrounded by <<<<<, ===== and >>>>> indicators. You need to
examine these lines of the files and resolve the conflict.

Wow! CVS is so good, where can I learn more?

-The basic manual -is a good reference. There is also an online +The basic manual +is a good reference. There is also an online tutorial as well as an training manual. For those who prefer the good old fashioned book there's "Open Source Development With CVS". @@ -122,10 +138,11 @@
- +
Last modified on $Date: 2001/02/09 18:58:02 $Last modified on $Date: 2008/04/30 15:05:26 $ -
CVS: $Source: /home/ubuntu/mnt/e9_copy/mitgcm.org/Attic/usingcvstoget.html,v $Revision: $
+
CVS: /u/gcmpack/mitgcm.org/usingcvstoget.html,v +$Revision: 1.7 $