version 1.26, 1997/09/01 22:04:32 |
version 1.27, 1997/10/01 19:27:28 |
|
|
will work OK. |
will work OK. |
</p> |
</p> |
<h4>CVS COMMAND SUMMARY</h4> |
<h4>CVS COMMAND SUMMARY</h4> |
|
<dt> cvs [cvs args] [cvs command] [cvs command args] |
|
<dd> below is a listing of commonly used cvs commands. |
<dl> |
<dl> |
<DT>add |
<DT>add |
<dd>Add a new file or directory to the repository. |
<dd>Add a new file or directory to the repository. |
|
|
|
|
<p> |
<p> |
A sample use of an anoncvs CVS server would be: |
A sample use of an anoncvs CVS server would be: |
|
<ul> |
<pre> |
<pre> |
% setenv CVSROOT anoncvs@anoncvs.usa.openbsd.org:/cvs |
% setenv CVSROOT anoncvs@anoncvs.usa.openbsd.org:/cvs |
% cd /tmp |
% cd /tmp |
|
|
% cvs diff -bc -r1.1 -r1.5 src/sys/arch/sparc/sparc/locore.s |
% cvs diff -bc -r1.1 -r1.5 src/sys/arch/sparc/sparc/locore.s |
[shows the changes between revisions 1.1 and rev 1.5] |
[shows the changes between revisions 1.1 and rev 1.5] |
</pre> |
</pre> |
|
</ul> |
</p> |
</p> |
|
|
<p> |
<p> |
|
|
<p> |
<p> |
Here is how someone using anoncvs regularily would update his |
Here is how someone using anoncvs regularily would update his |
source tree: |
source tree: |
|
<ul><li>First, startout by `get'-ing an initial tree: |
|
|
<pre> |
<pre> |
# setenv CVSROOT anoncvs@anoncvs.usa.openbsd.org:/cvs |
# setenv CVSROOT anoncvs@anoncvs.usa.openbsd.org:/cvs |
# cd /usr |
# cd /usr |
# cvs -q get -PA src |
# cvs -q get -PA src |
</pre> |
</pre> |
or similarily later on he might try: |
</li> |
|
<li> Anytime afterwards, to `update' this tree: |
<pre> |
<pre> |
# cd /usr |
# cd /usr |
# cvs -q up -PAd src |
# cvs -q up -PAd src |
</pre> |
</pre> |
|
|
Everytime you ran this it would syncronize your /usr/src tree. It would |
Everytime you ran this it would syncronize your /usr/src tree. It would |
not destroy any of your local changes, rather it would attempt to merge |
not destroy any of your local changes, rather it would attempt to merge |
changes in. If you use obj directories (not obj symbolic links) you may |
changes in. If you use obj directories (not obj symbolic links) you may |
wish to append "-I obj" to the cvs command line, this will keep cvs from |
wish to append "-I obj" to the cvs command line, this will keep cvs from |
spitting out a warning about all the obj directories it is going to |
spitting out a warning about all the obj directories it is going to |
encounter which are not in the repository. |
encounter which are not in the repository. |
|
</li> |
|
</ul> |
|
|
|
In the above example, '-q' is optional, only intended to minimize |
|
cvs's output. For those who like to see screenfulls of output, it |
|
can be omitted. |
</p> |
</p> |
|
|
<p> |
<p> |