31 |
with contain a directory "CVS". This contains information required by CVS |
with contain a directory "CVS". This contains information required by CVS |
32 |
to keep track of your file versions with respect to the repository. <i>Don't |
to keep track of your file versions with respect to the repository. <i>Don't |
33 |
edit the files in CVS</i>. |
edit the files in CVS</i>. |
34 |
|
<p>You can also "check out" a particular version of the code. We use the |
35 |
|
notion of checkpoints to indicate the evolution of the code. To specify |
36 |
|
which "tag" you require use the -r option: |
37 |
|
<blockquote> |
38 |
|
<pre>cvs co -d <i>directory</i> -P -r checkpoint40 models/MITgcmUV</pre> |
39 |
|
</blockquote> |
40 |
|
|
41 |
<h2> |
<h2> |
42 |
Show changes that YOU have made</h2> |
Show changes that YOU have made</h2> |
43 |
If you are running into difficulties it is very useful to see the changes |
If you are running into difficulties it is very useful to see the changes |
69 |
You can download and merge updates from the repository to bring you working |
You can download and merge updates from the repository to bring you working |
70 |
code up to date: |
code up to date: |
71 |
<blockquote> |
<blockquote> |
72 |
<pre>cvs update</pre> |
<pre>cvs update -d -P</pre> |
73 |
</blockquote> |
</blockquote> |
74 |
will work recursively on all files in the current directory and below. |
will work recursively on all files in the current directory and below. |
75 |
To update just a specific file or |
To update just a specific file or |
77 |
<blockquote> |
<blockquote> |
78 |
<pre>cvs update <i>file</i></pre> |
<pre>cvs update <i>file</i></pre> |
79 |
</blockquote> |
</blockquote> |
80 |
|
You can also update to a specific version, just as you could check out |
81 |
|
a specific version. |
82 |
|
<blockquote> |
83 |
|
<pre>cvs update -d -P -r checkpoint40</pre> |
84 |
|
</blockquote> |
85 |
|
If you checked out a specific version and want to update to the very latest |
86 |
|
use the -A option will remove associated with a specific version as follows: |
87 |
|
<blockquote> |
88 |
|
<pre>cvs update -d -P -A</pre> |
89 |
|
</blockquote> |
90 |
"cvs update" produces output to the terminal with the following meanings: |
"cvs update" produces output to the terminal with the following meanings: |
91 |
<br> |
<br> |
92 |
<table BORDER CELLPADDING=3 WIDTH="80%" NOSAVE > |
<table BORDER CELLPADDING=3 WIDTH="80%" NOSAVE > |
124 |
</tr> |
</tr> |
125 |
</table> |
</table> |
126 |
|
|
127 |
<blockquote> </blockquote> |
<p>When conflicts arise, the sections of code are both kept and surrounded |
|
When conflicts arise, the sections of code are both kept and surrounded |
|
128 |
by <<<<<, ===== and >>>>> indicators. You need to |
by <<<<<, ===== and >>>>> indicators. You need to |
129 |
<br>examine these lines of the files and resolve the conflict. |
<br>examine these lines of the files and resolve the conflict. |
130 |
<h2> |
<h2> |
141 |
<td NOSAVE>Last modified on $Date$</td> |
<td NOSAVE>Last modified on $Date$</td> |
142 |
|
|
143 |
<td> |
<td> |
144 |
<div align=right>CVS: $Source$Revision: 1.1 $</div> |
<div align=right>CVS: /u/gcmpack/mitgcm.org/usingcvstoget.html,v |
145 |
|
$Revision$</div> |
146 |
</td> |
</td> |
147 |
</tr> |
</tr> |
148 |
</table> |
</table> |