version 1.244, 2006/01/31 16:42:06 |
version 1.245, 2006/03/17 07:54:10 |
|
|
<p> |
<p> |
A sample use of an anoncvs server would be: |
A sample use of an anoncvs server would be: |
<pre> |
<pre> |
% <strong>setenv CVSROOT anoncvs@anoncvs.ca.openbsd.org:/cvs</strong> |
$ <strong>cd /tmp</strong> |
% <strong>cd /tmp</strong> |
$ <strong>cvs -d anoncvs@anoncvs.ca.openbsd.org:/cvs get src/sys/arch/sparc</strong> |
% <strong>cvs get src/sys/arch/sparc</strong> |
|
[copies the files from the repository to your machine] |
[copies the files from the repository to your machine] |
% <strong>cvs log src/sys/arch/sparc/sparc/locore.s</strong> |
$ <strong>cd src/sys/arch/sparc</strong> |
|
$ <strong>cvs log locore.s</strong> |
[shows the commit log for the chosen file] |
[shows the commit log for the chosen file] |
% <strong>cvs diff -bc -r1.1 -r1.5 src/sys/arch/sparc/sparc/locore.s</strong> |
$ <strong>cvs diff -bc -r1.1 -r1.5 locore.s</strong> |
[shows the changes between revisions 1.1 and rev 1.5] |
[shows the changes between revisions 1.1 and rev 1.5] |
</pre> |
</pre> |
|
|
|
|
instead of using ssh or rsh) you must login once:</a> |
instead of using ssh or rsh) you must login once:</a> |
|
|
<pre> |
<pre> |
% <strong>setenv CVSROOT :pserver:anoncvs@anoncvs.ca.openbsd.org:/cvs</strong> |
$ <strong>cvs -d :pserver:anoncvs@anoncvs.ca.openbsd.org:/cvs login</strong> |
% <strong>cvs login</strong> |
|
(Logging in to anoncvs@anoncvs1.ca.openbsd.org) |
(Logging in to anoncvs@anoncvs1.ca.openbsd.org) |
CVS password: <strong>anoncvs</strong> |
CVS password: <strong>anoncvs</strong> |
[This writes a line to ~/.cvspass (filename over-ridden by CVS_PASSFILE).] |
[This writes a line to ~/.cvspass (filename over-ridden by CVS_PASSFILE).] |
|
|
[password is: ] |
[password is: ] |
[:pserver:anoncvs@anoncvs5.usa.openbsd.org:/cvs Au'yc ] |
[:pserver:anoncvs@anoncvs5.usa.openbsd.org:/cvs Au'yc ] |
[After logging in ONCE every other use of the above CVSROOT will work. ] |
[After logging in ONCE every other use of the above CVSROOT will work. ] |
% <strong>cvs get ksrc-i386 ksrc-common</strong> |
$ <strong>cvs -d :pserver:anoncvs@anoncvs.ca.openbsd.org:/cvs get ksrc-i386 ksrc-common</strong> |
[Allows you to retrieve ONLY that necessary to rebuild an i386 kernel. ] |
[Allows you to retrieve ONLY that necessary to rebuild an i386 kernel. ] |
</pre> |
</pre> |
|
|
|
|
|
|
<p> (If you are following <i>current</i>): |
<p> (If you are following <i>current</i>): |
<pre> |
<pre> |
# <strong>setenv CVSROOT anoncvs@anoncvs.ca.openbsd.org:/cvs</strong> |
|
# <strong>cd /usr</strong> |
# <strong>cd /usr</strong> |
# <strong>cvs -q get -P src</strong> |
# <strong>cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs get -P src</strong> |
</pre> |
</pre> |
|
|
<p> (If you are following the patch branch for 3.8): |
<p> (If you are following the patch branch for 3.8): |
<pre> |
<pre> |
# <strong>setenv CVSROOT anoncvs@anoncvs.ca.openbsd.org:/cvs</strong> |
|
# <strong>cd /usr</strong> |
# <strong>cd /usr</strong> |
# <strong>cvs -q get -rOPENBSD_3_8 -P src</strong> |
# <strong>cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs get -rOPENBSD_3_8 -P src</strong> |
</pre> |
</pre> |
|
|
<li> Anytime afterwards, to `update' this tree: |
<li> Anytime afterwards, to `update' this tree: |
|
|
<li> NOTE: |
<li> NOTE: |
If you are updating a source tree that you initially fetched |
If you are updating a source tree that you initially fetched |
from a different server, or from a CD, you <strong>must</strong> |
from a different server, or from a CD, you <strong>must</strong> |
add the <em>-d $CVSROOT</em> options to cvs. |
add the <em>-d anoncvs@anoncvs.ca.openbsd.org:/cvs</em> options to cvs. |
<pre> |
<pre> |
# <strong>cd /usr/src</strong> |
# <strong>cd /usr/src</strong> |
# <strong>cvs -d $CVSROOT -q up -Pd</strong> |
# <strong>cvs -d anoncvs@anoncvs.ca.openbsd.org:/cvs -q up -Pd</strong> |
</pre> |
</pre> |
</ul> |
</ul> |
|
|
|
|
<ul><li> |
<ul><li> |
<p> (If you are following <i>current</i>): |
<p> (If you are following <i>current</i>): |
<pre> |
<pre> |
# <strong>setenv CVSROOT anoncvs@anoncvs.ca.openbsd.org:/cvs</strong> |
|
# <strong>cd /usr</strong> |
# <strong>cd /usr</strong> |
# <strong>cvs -q get -P ports</strong> |
# <strong>cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs get -P ports</strong> |
</pre> |
</pre> |
<p> (If you are following the patch branch for 3.8): |
<p> (If you are following the patch branch for 3.8): |
<pre> |
<pre> |
# <strong>setenv CVSROOT anoncvs@anoncvs.ca.openbsd.org:/cvs</strong> |
|
# <strong>cd /usr</strong> |
# <strong>cd /usr</strong> |
# <strong>cvs -q get -rOPENBSD_3_8 -P ports</strong> |
# <strong>cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs get -rOPENBSD_3_8 -P ports</strong> |
</pre> |
</pre> |
<li> Anytime afterwards, to `update' this tree: |
<li> Anytime afterwards, to `update' this tree: |
<p> (If you are following <i>current</i>): |
<p> (If you are following <i>current</i>): |
|
|
do this: |
do this: |
|
|
<pre> |
<pre> |
<strong>% setenv CVS_CLIENT_PORT -1</strong> |
<strong>$ export CVS_CLIENT_PORT=-1</strong> |
</pre> |
</pre> |
|
|
<p> |
<p> |