Blame


1 67075c36 2005-01-14 devnull .TH CVS 1
2 67075c36 2005-01-14 devnull .SH NAME
3 67075c36 2005-01-14 devnull cvs \- introduction using plan9port CVS repository
4 67075c36 2005-01-14 devnull .SH SYNOPSIS
5 67075c36 2005-01-14 devnull .B cvs
6 67075c36 2005-01-14 devnull .B -d
7 d944f764 2007-11-05 rsc .B :pserver:anoncvs@cvs.pdos.csail.mit.edu:/cvs login
8 67075c36 2005-01-14 devnull .PP
9 67075c36 2005-01-14 devnull .B cvs
10 67075c36 2005-01-14 devnull .B -d
11 d944f764 2007-11-05 rsc .B :pserver:anoncvs@cvs.pdos.csail.mit.edu:/cvs checkout plan9
12 67075c36 2005-01-14 devnull .PP
13 67075c36 2005-01-14 devnull .B cvs
14 67075c36 2005-01-14 devnull .B update
15 67075c36 2005-01-14 devnull [
16 67075c36 2005-01-14 devnull .B -dP
17 67075c36 2005-01-14 devnull ]
18 67075c36 2005-01-14 devnull [
19 67075c36 2005-01-14 devnull .I path ...
20 67075c36 2005-01-14 devnull ]
21 67075c36 2005-01-14 devnull .PP
22 67075c36 2005-01-14 devnull .B cvs
23 67075c36 2005-01-14 devnull .B status
24 67075c36 2005-01-14 devnull [
25 67075c36 2005-01-14 devnull .I path ...
26 67075c36 2005-01-14 devnull ]
27 67075c36 2005-01-14 devnull .PP
28 67075c36 2005-01-14 devnull .B cvs
29 67075c36 2005-01-14 devnull .B diff
30 67075c36 2005-01-14 devnull [
31 67075c36 2005-01-14 devnull .B -D
32 67075c36 2005-01-14 devnull .I date
33 67075c36 2005-01-14 devnull ]
34 67075c36 2005-01-14 devnull [
35 67075c36 2005-01-14 devnull .B -r
36 67075c36 2005-01-14 devnull .I revision
37 67075c36 2005-01-14 devnull ]
38 67075c36 2005-01-14 devnull [
39 b7f251fb 2005-01-14 devnull .B -cu
40 67075c36 2005-01-14 devnull ]
41 67075c36 2005-01-14 devnull [
42 67075c36 2005-01-14 devnull .I path ...
43 67075c36 2005-01-14 devnull ]
44 8ce709af 2005-01-18 devnull .PP
45 8ce709af 2005-01-18 devnull .B web
46 d944f764 2007-11-05 rsc .B http://cvs.pdos.csail.mit.edu/cvs/plan9/
47 67075c36 2005-01-14 devnull .SH DESCRIPTION
48 67075c36 2005-01-14 devnull The master source tree for Plan 9 from User Space is maintained
49 67075c36 2005-01-14 devnull using the source control system CVS
50 67075c36 2005-01-14 devnull as a poor substitute for Plan 9's
51 67075c36 2005-01-14 devnull \fIreplica\fR(8) and dump file system.
52 d944f764 2007-11-05 rsc (It is maintained simultaneously using Mercurial; see
53 d944f764 2007-11-05 rsc .IR hg (1).)
54 67075c36 2005-01-14 devnull .PP
55 67075c36 2005-01-14 devnull The first argument to
56 67075c36 2005-01-14 devnull .I cvs
57 67075c36 2005-01-14 devnull is a command, which determines the form of the rest of the command line.
58 67075c36 2005-01-14 devnull .PP
59 67075c36 2005-01-14 devnull The
60 67075c36 2005-01-14 devnull .B login
61 67075c36 2005-01-14 devnull command authenticates to the remote server and records your password in
62 67075c36 2005-01-14 devnull .BR $HOME/.cvspass .
63 67075c36 2005-01-14 devnull Use an empty password: when prompted, type a newline.
64 67075c36 2005-01-14 devnull .PP
65 67075c36 2005-01-14 devnull The
66 67075c36 2005-01-14 devnull .B checkout
67 67075c36 2005-01-14 devnull command downloads a copy of the tree into the directory
68 67075c36 2005-01-14 devnull .BR plan9 ,
69 67075c36 2005-01-14 devnull which it will create.
70 67075c36 2005-01-14 devnull The argument
71 67075c36 2005-01-14 devnull .B plan9
72 67075c36 2005-01-14 devnull is both the name of the created directory and the name used to
73 67075c36 2005-01-14 devnull tell the server which tree you want.
74 67075c36 2005-01-14 devnull If you want to use a different name locally, rename the directory
75 67075c36 2005-01-14 devnull after running the command.
76 67075c36 2005-01-14 devnull .PP
77 67075c36 2005-01-14 devnull From directories within the
78 67075c36 2005-01-14 devnull .B plan9
79 67075c36 2005-01-14 devnull tree, the awkward
80 67075c36 2005-01-14 devnull .B -d
81 67075c36 2005-01-14 devnull is no longer necessary.
82 67075c36 2005-01-14 devnull .PP
83 67075c36 2005-01-14 devnull .I Cvs
84 67075c36 2005-01-14 devnull .I update
85 67075c36 2005-01-14 devnull incorporates recent changes from the CVS tree
86 67075c36 2005-01-14 devnull into the local copy.
87 67075c36 2005-01-14 devnull If the changes cannot be merged because of locally-made changes
88 67075c36 2005-01-14 devnull that are in the way,
89 67075c36 2005-01-14 devnull .I cvs
90 67075c36 2005-01-14 devnull will leave a note in the file showing the differences between the local
91 67075c36 2005-01-14 devnull and remote file.
92 67075c36 2005-01-14 devnull .PP
93 67075c36 2005-01-14 devnull The
94 67075c36 2005-01-14 devnull .B -d
95 67075c36 2005-01-14 devnull flag to
96 67075c36 2005-01-14 devnull .I cvs
97 67075c36 2005-01-14 devnull .I update
98 67075c36 2005-01-14 devnull causes
99 67075c36 2005-01-14 devnull it to update subdirectories as well.
100 67075c36 2005-01-14 devnull The
101 67075c36 2005-01-14 devnull .B -P
102 67075c36 2005-01-14 devnull flag causes
103 67075c36 2005-01-14 devnull .I cvs
104 67075c36 2005-01-14 devnull .I update
105 67075c36 2005-01-14 devnull to remove directories that have been emptied.
106 67075c36 2005-01-14 devnull .PP
107 67075c36 2005-01-14 devnull .I Cvs
108 67075c36 2005-01-14 devnull .I status
109 67075c36 2005-01-14 devnull displays the version number (also called a revision number)
110 67075c36 2005-01-14 devnull for the local copy of the named files,
111 67075c36 2005-01-14 devnull as well as the number of the most recent version on the server.
112 67075c36 2005-01-14 devnull Version numbers are of the form
113 67075c36 2005-01-14 devnull .RI 1. n \fR,
114 67075c36 2005-01-14 devnull where
115 67075c36 2005-01-14 devnull .I n
116 67075c36 2005-01-14 devnull is a sequence number starting at 1.
117 67075c36 2005-01-14 devnull .PP
118 67075c36 2005-01-14 devnull .I Cvs
119 67075c36 2005-01-14 devnull .I diff
120 67075c36 2005-01-14 devnull runs Unix's
121 67075c36 2005-01-14 devnull .IR diff (1)
122 67075c36 2005-01-14 devnull to compare files in the local tree with the corresponding files in
123 67075c36 2005-01-14 devnull the CVS tree.
124 67075c36 2005-01-14 devnull By default it compares against the version that was most recently
125 67075c36 2005-01-14 devnull incorporated into the local tree.
126 67075c36 2005-01-14 devnull The
127 67075c36 2005-01-14 devnull .B -r
128 67075c36 2005-01-14 devnull flag specifies an alternate version to compare against.
129 67075c36 2005-01-14 devnull The special revision
130 67075c36 2005-01-14 devnull .B HEAD
131 67075c36 2005-01-14 devnull refers to the most recent version on the server.
132 67075c36 2005-01-14 devnull The
133 67075c36 2005-01-14 devnull .B -D
134 67075c36 2005-01-14 devnull flag instructs
135 67075c36 2005-01-14 devnull .I cvs
136 67075c36 2005-01-14 devnull .I diff
137 67075c36 2005-01-14 devnull to use the version as of the given date.
138 67075c36 2005-01-14 devnull Almost any imaginable date format is acceptable:
139 67075c36 2005-01-14 devnull .BR 20050110 ,
140 67075c36 2005-01-14 devnull .BR 1/10/2005 ,
141 67075c36 2005-01-14 devnull .B 'Jan
142 67075c36 2005-01-14 devnull .BR 10' ,
143 67075c36 2005-01-14 devnull .BR yesterday ,
144 67075c36 2005-01-14 devnull .B 'last
145 67075c36 2005-01-14 devnull .BR week ',
146 67075c36 2005-01-14 devnull .B 'two
147 67075c36 2005-01-14 devnull .B days
148 67075c36 2005-01-14 devnull .BR ago' ,
149 67075c36 2005-01-14 devnull .B 'a
150 67075c36 2005-01-14 devnull .B fortnight
151 c230471b 2005-01-14 devnull .BR ago' ,
152 67075c36 2005-01-14 devnull and so on.
153 67075c36 2005-01-14 devnull If two
154 67075c36 2005-01-14 devnull .B -r
155 67075c36 2005-01-14 devnull or
156 67075c36 2005-01-14 devnull .B -D
157 67075c36 2005-01-14 devnull options are given,
158 67075c36 2005-01-14 devnull those two versions are compared, and the local copy is ignored.
159 67075c36 2005-01-14 devnull .PP
160 b7f251fb 2005-01-14 devnull .I Cvs
161 b7f251fb 2005-01-14 devnull .I diff
162 b7f251fb 2005-01-14 devnull passes the
163 b7f251fb 2005-01-14 devnull .B -u
164 b7f251fb 2005-01-14 devnull or
165 b7f251fb 2005-01-14 devnull .B -c
166 b7f251fb 2005-01-14 devnull options to the Unix
167 b7f251fb 2005-01-14 devnull .IR diff .
168 b7f251fb 2005-01-14 devnull .PP
169 67075c36 2005-01-14 devnull If you download a tar file from the web
170 67075c36 2005-01-14 devnull instead of checking out the tree with CVS,
171 67075c36 2005-01-14 devnull you can still use the
172 67075c36 2005-01-14 devnull .I update
173 67075c36 2005-01-14 devnull and
174 67075c36 2005-01-14 devnull .I diff
175 67075c36 2005-01-14 devnull commands to stay up-to-date and to see what has changed.
176 67075c36 2005-01-14 devnull You will need to run the
177 67075c36 2005-01-14 devnull .I cvs
178 67075c36 2005-01-14 devnull .I login
179 67075c36 2005-01-14 devnull command first to create your
180 67075c36 2005-01-14 devnull .B .cvspass
181 67075c36 2005-01-14 devnull file.
182 8ce709af 2005-01-18 devnull .PP
183 8ce709af 2005-01-18 devnull The CVS tree can be inspected on the web at
184 d944f764 2007-11-05 rsc .HR http://cvs.pdos.csail.mit.edu/cvs/plan9/ "" .
185 67075c36 2005-01-14 devnull .SH EXAMPLES
186 67075c36 2005-01-14 devnull Incorporate any changes made to the CVS tree since
187 67075c36 2005-01-14 devnull the last check out or update:
188 67075c36 2005-01-14 devnull .IP
189 67075c36 2005-01-14 devnull .EX
190 67075c36 2005-01-14 devnull cd $PLAN9
191 67075c36 2005-01-14 devnull cvs up -dP
192 67075c36 2005-01-14 devnull .EE
193 67075c36 2005-01-14 devnull .PP
194 67075c36 2005-01-14 devnull Compare
195 adc93f60 2005-01-14 devnull .I libdraw
196 67075c36 2005-01-14 devnull against its source from January 1, 2005:
197 67075c36 2005-01-14 devnull .IP
198 67075c36 2005-01-14 devnull .EX
199 67075c36 2005-01-14 devnull cd $PLAN9/src/libdraw
200 67075c36 2005-01-14 devnull cvs diff -D20050101
201 67075c36 2005-01-14 devnull .EE
202 67075c36 2005-01-14 devnull .PP
203 67075c36 2005-01-14 devnull Check the entire tree for changes made locally:
204 67075c36 2005-01-14 devnull .IP
205 67075c36 2005-01-14 devnull .EX
206 67075c36 2005-01-14 devnull cd $PLAN9
207 67075c36 2005-01-14 devnull cvs diff
208 67075c36 2005-01-14 devnull .EE
209 67075c36 2005-01-14 devnull .PP
210 67075c36 2005-01-14 devnull Check the entire tree for changes between the local version and
211 67075c36 2005-01-14 devnull the most recent in the CVS tree.
212 67075c36 2005-01-14 devnull This does not indicate which changes are local ones
213 67075c36 2005-01-14 devnull and which are changes to the CVS tree that have not yet been
214 67075c36 2005-01-14 devnull incorporated into the local tree.
215 67075c36 2005-01-14 devnull .IP
216 67075c36 2005-01-14 devnull .EX
217 67075c36 2005-01-14 devnull cd $PLAN9
218 67075c36 2005-01-14 devnull cvs diff -r HEAD
219 67075c36 2005-01-14 devnull .EE
220 4197125d 2005-03-18 devnull .PP
221 4197125d 2005-03-18 devnull Make
222 4197125d 2005-03-18 devnull .I cvs
223 4197125d 2005-03-18 devnull less chatty by setting the global
224 4197125d 2005-03-18 devnull .B -q
225 4197125d 2005-03-18 devnull flag implicitly on every CVS command:
226 4197125d 2005-03-18 devnull .EX
227 4197125d 2005-03-18 devnull cd $HOME
228 4197125d 2005-03-18 devnull echo 'cvs -q' > .cvsrc
229 4197125d 2005-03-18 devnull .EE
230 67075c36 2005-01-14 devnull .SH FILES
231 67075c36 2005-01-14 devnull .TP
232 67075c36 2005-01-14 devnull .B CVS
233 67075c36 2005-01-14 devnull directory containing CVS metadata for parent
234 67075c36 2005-01-14 devnull .TP
235 67075c36 2005-01-14 devnull .B .cvsignore
236 67075c36 2005-01-14 devnull list of files and wildcards to exclude from CVS operations in this directory
237 67075c36 2005-01-14 devnull .SH SEE ALSO
238 d944f764 2007-11-05 rsc .IR hg (1)
239 d944f764 2007-11-05 rsc .PP
240 67075c36 2005-01-14 devnull Unix's
241 638f5c0d 2005-01-14 devnull \fIcvs\fR(1),
242 8ce709af 2005-01-18 devnull .HR http://www.cvshome.org/
243 8ce709af 2005-01-18 devnull .PP
244 d944f764 2007-11-05 rsc .HR http://cvs.pdos.csail.mit.edu/cvs/plan9/
245 67075c36 2005-01-14 devnull .SH BUGS
246 67075c36 2005-01-14 devnull The CVS server is a read-only public copy of a private tree.
247 67075c36 2005-01-14 devnull The dates on versions reflect the date the changes were made in the
248 67075c36 2005-01-14 devnull private tree, not the date the change was made public.
249 1574caa0 2005-01-14 devnull .PP
250 1574caa0 2005-01-14 devnull On Mac OS X,
251 1574caa0 2005-01-14 devnull .I cvs
252 1574caa0 2005-01-14 devnull will complain during a checkout that some files in
253 1574caa0 2005-01-14 devnull .B $PLAN9/troff/font/devutf
254 1574caa0 2005-01-14 devnull are ``in the way.''
255 1574caa0 2005-01-14 devnull This is due to the Mac case-insensitive file system
256 a79e8ab4 2006-02-14 devnull and the fact that troff has some (rarely used)
257 fe1a0270 2005-01-16 devnull files whose names differ only in case.