This commit is contained in:
Russ Cox 2009-12-27 09:19:39 -08:00
commit 7351eea28e
10 changed files with 92 additions and 278 deletions

View file

@ -20,6 +20,7 @@ acmeevent acmeevent.1
ascii ascii.1
unicode ascii.1
astro astro.1
awk awk.1
basename basename.1
bc bc.1
bundle bundle.1
@ -32,19 +33,20 @@ cleanname cleanname.1
auxclog clog.1
clog clog.1
cmp cmp.1
codereview codereview.1
cmapcube colors.1
colors colors.1
comm comm.1
core core.1
crop crop.1
iconv crop.1
cvs cvs.1
date date.1
db db.1
stack db.1
dc dc.1
delatex deroff.1
deroff deroff.1
devdraw devdraw.1
dial dial.1
adict dict.1
dict dict.1
@ -73,9 +75,13 @@ gunzip gzip.1
gzip gzip.1
unzip gzip.1
zip gzip.1
cvs hg.1
hg hg.1
hget hget.1
hist hist.1
history hist.1
hoc hoc.1
htmlroff htmlroff.1
idiff idiff.1
install install.1
join join.1
@ -111,6 +117,8 @@ mk mk.1
dump9660 mk9660.1
mk9660 mk9660.1
mkdir mkdir.1
mount mount.1
unmount mount.1
namespace namespace.1
ndb ndb.1
ndbipquery ndb.1
@ -125,9 +133,7 @@ netfiles netfiles.1
netfilestat netfiles.1
news news.1
p p.1
img page.1
page page.1
psv page.1
netkey passwd.1
passwd passwd.1
pem pem.1
@ -158,6 +164,7 @@ wait rc.1
whatis rc.1
~ rc.1
readcons readcons.1
resample resample.1
rio rio.1
rm rm.1
asn12dsa rsa.1
@ -188,11 +195,13 @@ sed sed.1
seq seq.1
sftpcache sftpcache.1
sleep sleep.1
snarfer snarfer.1
sort sort.1
spell spell.1
sprog spell.1
split split.1
src src.1
ssam ssam.1
ssh-agent ssh-agent.1
auxstats stats.1
stats stats.1
@ -216,6 +225,7 @@ troff2html troff2html.1
tweak tweak.1
uniq uniq.1
units units.1
unvac vac.1
vac vac.1
copy venti.1
read venti.1

View file

@ -1,257 +0,0 @@
.TH CVS 1
.SH NAME
cvs \- introduction using plan9port CVS repository
.SH SYNOPSIS
.B cvs
.B -d
.B :pserver:anoncvs@cvs.pdos.csail.mit.edu:/cvs login
.PP
.B cvs
.B -d
.B :pserver:anoncvs@cvs.pdos.csail.mit.edu:/cvs checkout plan9
.PP
.B cvs
.B update
[
.B -dP
]
[
.I path ...
]
.PP
.B cvs
.B status
[
.I path ...
]
.PP
.B cvs
.B diff
[
.B -D
.I date
]
[
.B -r
.I revision
]
[
.B -cu
]
[
.I path ...
]
.PP
.B web
.B http://cvs.pdos.csail.mit.edu/cvs/plan9/
.SH DESCRIPTION
The master source tree for Plan 9 from User Space is maintained
using the source control system CVS
as a poor substitute for Plan 9's
\fIreplica\fR(8) and dump file system.
(It is maintained simultaneously using Mercurial; see
.IR hg (1).)
.PP
The first argument to
.I cvs
is a command, which determines the form of the rest of the command line.
.PP
The
.B login
command authenticates to the remote server and records your password in
.BR $HOME/.cvspass .
Use an empty password: when prompted, type a newline.
.PP
The
.B checkout
command downloads a copy of the tree into the directory
.BR plan9 ,
which it will create.
The argument
.B plan9
is both the name of the created directory and the name used to
tell the server which tree you want.
If you want to use a different name locally, rename the directory
after running the command.
.PP
From directories within the
.B plan9
tree, the awkward
.B -d
is no longer necessary.
.PP
.I Cvs
.I update
incorporates recent changes from the CVS tree
into the local copy.
If the changes cannot be merged because of locally-made changes
that are in the way,
.I cvs
will leave a note in the file showing the differences between the local
and remote file.
.PP
The
.B -d
flag to
.I cvs
.I update
causes
it to update subdirectories as well.
The
.B -P
flag causes
.I cvs
.I update
to remove directories that have been emptied.
.PP
.I Cvs
.I status
displays the version number (also called a revision number)
for the local copy of the named files,
as well as the number of the most recent version on the server.
Version numbers are of the form
.RI 1. n \fR,
where
.I n
is a sequence number starting at 1.
.PP
.I Cvs
.I diff
runs Unix's
.IR diff (1)
to compare files in the local tree with the corresponding files in
the CVS tree.
By default it compares against the version that was most recently
incorporated into the local tree.
The
.B -r
flag specifies an alternate version to compare against.
The special revision
.B HEAD
refers to the most recent version on the server.
The
.B -D
flag instructs
.I cvs
.I diff
to use the version as of the given date.
Almost any imaginable date format is acceptable:
.BR 20050110 ,
.BR 1/10/2005 ,
.B 'Jan
.BR 10' ,
.BR yesterday ,
.B 'last
.BR week ',
.B 'two
.B days
.BR ago' ,
.B 'a
.B fortnight
.BR ago' ,
and so on.
If two
.B -r
or
.B -D
options are given,
those two versions are compared, and the local copy is ignored.
.PP
.I Cvs
.I diff
passes the
.B -u
or
.B -c
options to the Unix
.IR diff .
.PP
If you download a tar file from the web
instead of checking out the tree with CVS,
you can still use the
.I update
and
.I diff
commands to stay up-to-date and to see what has changed.
You will need to run the
.I cvs
.I login
command first to create your
.B .cvspass
file.
.PP
The CVS tree can be inspected on the web at
.HR http://cvs.pdos.csail.mit.edu/cvs/plan9/ "" .
.SH EXAMPLES
Incorporate any changes made to the CVS tree since
the last check out or update:
.IP
.EX
cd $PLAN9
cvs up -dP
.EE
.PP
Compare
.I libdraw
against its source from January 1, 2005:
.IP
.EX
cd $PLAN9/src/libdraw
cvs diff -D20050101
.EE
.PP
Check the entire tree for changes made locally:
.IP
.EX
cd $PLAN9
cvs diff
.EE
.PP
Check the entire tree for changes between the local version and
the most recent in the CVS tree.
This does not indicate which changes are local ones
and which are changes to the CVS tree that have not yet been
incorporated into the local tree.
.IP
.EX
cd $PLAN9
cvs diff -r HEAD
.EE
.PP
Make
.I cvs
less chatty by setting the global
.B -q
flag implicitly on every CVS command:
.EX
cd $HOME
echo 'cvs -q' > .cvsrc
.EE
.SH FILES
.TP
.B CVS
directory containing CVS metadata for parent
.TP
.B .cvsignore
list of files and wildcards to exclude from CVS operations in this directory
.SH SEE ALSO
.IR hg (1)
.PP
Unix's
\fIcvs\fR(1),
.HR http://www.cvshome.org/
.PP
.HR http://cvs.pdos.csail.mit.edu/cvs/plan9/
.SH BUGS
The CVS server is a read-only public copy of a private tree.
The dates on versions reflect the date the changes were made in the
private tree, not the date the change was made public.
.PP
On Mac OS X,
.I cvs
will complain during a checkout that some files in
.B $PLAN9/troff/font/devutf
are ``in the way.''
This is due to the Mac case-insensitive file system
and the fact that troff has some (rarely used)
files whose names differ only in case.

View file

@ -1,6 +1,6 @@
.TH HG 1
.SH NAME
hg \- introduction to using plan9port Mercurial repository
hg, cvs \- introduction to using plan9port Mercurial repository
.SH SYNOPSIS
.B hg
.B clone
@ -34,8 +34,6 @@ The master source tree for Plan 9 from User Space is maintained
using the source control system Mercurial
as a substitute for Plan 9's
\fIreplica\fR(8) and dump file system.
(It is maintained simultaneously using CVS; see
.IR cvs (1).)
.PP
The first argument to
.I hg
@ -101,8 +99,7 @@ directory containing Mercurial local repository
.B .hgignore
list of files and wildcards to exclude from Mercurial operations
.SH SEE ALSO
.IR codereview (1),
.IR cvs (1)
.IR codereview (1)
.PP
Unix's
\fIhg\fR(1),
@ -110,7 +107,5 @@ Unix's
.PP
.HR http://code.swtch.com/plan9port/
.SH BUGS
The use of Mercurial for accessing Plan 9 from User Space
should be considered experimental.
People uncomfortable with Mercurial should continue to use
.IR cvs (1).
Plan 9 from User Space is no longer accessible using CVS;
you must use Mercurial.