/[MITgcm]/mitgcm.org/front_content/using_cvs.xml
ViewVC logotype

Diff of /mitgcm.org/front_content/using_cvs.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1 by edhill, Thu Dec 4 02:14:52 2003 UTC revision 1.5 by edhill, Sat Dec 6 20:06:58 2003 UTC
# Line 14  Line 14 
14      <meta name="add_title" content="Using CVS" />      <meta name="add_title" content="Using CVS" />
15      <!-- Hinting for menu generation -->      <!-- Hinting for menu generation -->
16    
     <title>MITgcm: <!--ADDTITLE--></title>  
17  <style type="text/css">  <style type="text/css">
18   span.c2 {font-size: 110%}   span.c2 {font-size: 110%}
19   div.c1 {text-align: center}   div.c1 {text-align: center}
# Line 33  Line 32 
32        to use the CVS "pserver" mechanism.  This method only allows you to "check        to use the CVS "pserver" mechanism.  This method only allows you to "check
33        out" (or obtain a local copy) of the source.  It does not provide a        out" (or obtain a local copy) of the source.  It does not provide a
34        mechanism for "committing" or "checking in" changes (please see below).        mechanism for "committing" or "checking in" changes (please see below).
35        Using CVS pserver from the command line requires just a three        Using CVS pserver from the command line requires just a three commands.
36        commands:</p>        Using a Bourne, "bash", or "sh-compatible" shell they are:</p>
37            
 <blockquote>  
 Using a Bourne, "bash", or "sh-compatible" shell:  
38  <pre>  <pre>
39  $  export CVSROOT=':pserver:cvsanon@mitgcm.org:/usr/local/gcmpack'    $ export CVSROOT=':pserver:cvsanon@mitgcm.org:/u/gcmpack'
40  $  cvs login    $ cvs login
41  ( enter the CVS password: "cvsanon" )      ( enter the CVS password: "cvsanon" )
42  $  cvs co MITgcm MITgcm_contrib    $ cvs co MITgcm MITgcm_contrib
43  </pre><br />  </pre>
44    
45  Using a "C", "csh", or "tcsh" shell:      <p>Using a "C", "csh", or "tcsh" shell the commands are:</p>
46  <pre>  
47  $  setenv CVSROOT ':pserver:cvsanon@mitgcm.org:/usr/local/gcmpack'  <pre>
48  $  cvs login    $ setenv CVSROOT ':pserver:cvsanon@mitgcm.org:/u/gcmpack'
49  ( enter the CVS password: "cvsanon" )    $ cvs login
50  $  cvs co MITgcm MITgcm_contrib      ( enter the CVS password: "cvsanon" )
51      $ cvs co MITgcm MITgcm_contrib
52  </pre>  </pre>
 </blockquote>  
53    
54      <p>Note that you will only need to perform the "cvs login" once.  And for      <p>Note that you will only need to perform the "cvs login" once.  And for
55        convenience, you may want to add the CVSROOT variable to your shell's        convenience, you may want to add the CVSROOT variable to your shell's
# Line 82  $  cvs co MITgcm MITgcm_contrib Line 79  $  cvs co MITgcm MITgcm_contrib
79        </tr>        </tr>
80        <tr bgcolor="#bbddff">        <tr bgcolor="#bbddff">
81          <td width="25%">MITgcm_verif_basic</td>          <td width="25%">MITgcm_verif_basic</td>
82          <td>Source code plus three of the verification examples          <td>Source code plus a small set of the verification examples
83            ("adjustment.128x64x1", "internal_wave", and            ("global_ocean.90x40x15", "aim.5l_cs", "hs94.128x64x5",
84            "solid-body.cs-32x32x1").</td>            "front_relax", and "plume_on_slope").</td>
85       </tr>       </tr>
86        <tr bgcolor="#bbffdd">        <tr bgcolor="#bbffdd">
87          <td width="25%">MITgcm_verif_atmos</td>          <td width="25%">MITgcm_verif_atmos</td>
# Line 123  $  cvs co MITgcm MITgcm_contrib Line 120  $  cvs co MITgcm MITgcm_contrib
120        development.  One can check out these versions using the "-r TAG_NAME" CVS        development.  One can check out these versions using the "-r TAG_NAME" CVS
121        option such as: </p>        option such as: </p>
122    
 <blockquote>  
123  <pre>  <pre>
124  $  cvs co -r release1_p5 MITgcm    $ cvs co -r release1_p5 MITgcm
125  $  cvs co -r checkpoint52a_post MITgcm    $ cvs co -r checkpoint52a_post MITgcm
126  </pre>  </pre>
 </blockquote>  
127    
128      <p>By default (that is, when no tag is specified), CVS will retrieve the      <p>By default (that is, when no tag is specified), CVS will retrieve the
129        latest version of all files.</p>        latest version of all files.</p>
# Line 140  $  cvs co -r checkpoint52a_post MITgcm Line 135  $  cvs co -r checkpoint52a_post MITgcm
135        that you yourself have made since obtaining the code.  From within        that you yourself have made since obtaining the code.  From within
136        your working directory:</p>        your working directory:</p>
137    
138  <blockquote>  <pre>
139  <pre>cvs diff</pre>    cvs diff
140  </blockquote>  </pre>
141    
142    
143      <p>will show the differences between your version and the version that you      <p>will show the differences between your version and the version that you
144        checked out. It acts recursively on all directories below your current        checked out. It acts recursively on all directories below your current
145        directory. You can limit the operation to just one file or directory by        directory. You can limit the operation to just one file or directory by
146        specifying those as arguments:</p>        specifying those as arguments:</p>
147    
148  <blockquote>  <pre>
149  <pre>cvs diff <i>file</i></pre>    cvs diff <i>file</i>
150  </blockquote>  </pre>
151    
152    
153      <h4>Show changes to the repository that you don't have</h4>      <h4>Show changes to the repository that you don't have</h4>
154    
155      <p>The source code evolves continuously and you should try to stay up to      <p>The source code evolves continuously and you should try to stay up to
156        date.  To see what needs to be updated:</p>        date.  To see what needs to be updated:</p>
157    
158  <blockquote>  <pre>
159  <pre>cvs -n update</pre>    cvs -n update
160  </blockquote>  </pre>
161    
162      <p>behaves just as "cvs update" but doesn't actually change anything. This      <p>behaves just as "cvs update" but doesn't actually change anything. This
163        is a useful way of summarizing the state of your code. The meaning of the        is a useful way of summarizing the state of your code. The meaning of the
# Line 171  $  cvs co -r checkpoint52a_post MITgcm Line 168  $  cvs co -r checkpoint52a_post MITgcm
168      <p>You can download and merge updates from the repository to bring you      <p>You can download and merge updates from the repository to bring you
169        working code up to date:</p>        working code up to date:</p>
170    
171  <blockquote>  <pre>
172  <pre>cvs update -d -P</pre>    cvs update -d -P
173  </blockquote>  </pre>
174    
175        <p>will work recursively on all files in the current directory and below.        <p>will work recursively on all files in the current directory and below.
176          To update just a specific file or directory:</p>          To update just a specific file or directory:</p>
177    
178  <blockquote>  <pre>
179  <pre>cvs update <i>file</i></pre>    cvs update <i>file</i>
180  </blockquote>  </pre>
181    
182      <p>You can also update to a specific version, just as you could check out      <p>You can also update to a specific version, just as you could check out
183        a specific version.</p>        a specific version.</p>
184    
185  <blockquote>  <pre>
186  <pre>cvs update -d -P -r release1_p5</pre>    cvs update -d -P -r release1_p5
187  </blockquote>  </pre>
188    
189      <p>If you checked out a specific version and want to update to the very      <p>If you checked out a specific version and want to update to the very
190        latest use the -A option will remove associated with a specific version as        latest use the -A option will remove associated with a specific version as
191        follows:</p>        follows:</p>
192    
193  <blockquote>  <pre>
194  <pre>cvs update -d -P -A</pre>    cvs update -d -P -A
195  </blockquote>  </pre>
196    
197      <p>"cvs update" produces output to the terminal with the following      <p>"cvs update" produces output to the terminal with the following
198        meanings:</p>        meanings:</p>

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.22