2 .\" Set p to 1 if your formatter can handle pic output.
8 .Id $FreeBSD: src/gnu/usr.bin/rcs/rcs/rcsfile.5,v 1.5.2.1 2001/07/22 11:01:34 dd Exp $
9 .Id $DragonFly: src/gnu/usr.bin/rcs/rcs/rcsfile.5,v 1.2 2003/06/17 04:25:47 dillon Exp $
13 .TH RCSFILE 5 \*(Dt GNU
15 rcsfile \- format of RCS file
18 contents are described by the grammar
21 The text is free format: space, backspace, tab, newline, vertical
22 tab, form feed, and carriage return (collectively,
24 have no significance except in strings.
25 However, white space cannot appear within an id, num, or sym,
26 and an \*r file must end with a newline.
28 Strings are enclosed by
30 If a string contains a
33 otherwise, strings can contain arbitrary binary data.
35 The meta syntax uses the following conventions: `|' (bar) separates
36 alternatives; `{' and `}' enclose optional phrases; `{' and `}*' enclose
37 phrases that can be repeated zero or more times;
38 `{' and '}+' enclose phrases that must appear at least once and can be
40 Terminal symbols are in
42 nonterminal symbols are in
45 .nr w \w'\f3deltatext\fP '
46 .nr y \w'\f3newphrase\fP '
48 .nr x \w'\f3branches\fP'
49 .nr y \w'{ \f3comment\fP'
51 .nr y \w'\f3{ branch\fP'
53 .ta \nwu +\w'::= 'u +\nxu+\w' 'u
56 \f2rcstext\fP ::= \f2admin\fP {\f2delta\fP}* \f2desc\fP {\f2deltatext\fP}*
58 \f2admin\fP ::= \f3head\fP {\f2num\fP}\f3;\fP
59 { \f3branch\fP {\f2num\fP}\f3;\fP }
60 \f3access\fP {\f2id\fP}*\f3;\fP
61 \f3symbols\fP {\f2sym\fP \f3:\fP \f2num\fP}*\f3;\fP
62 \f3locks\fP {\f2id\fP \f3:\fP \f2num\fP}*\f3;\fP {\f3strict ;\fP}
63 { \f3comment\fP {\f2string\fP}\f3;\fP }
64 { \f3expand\fP {\f2string\fP}\f3;\fP }
67 \f2delta\fP ::= \f2num\fP
68 \f3date\fP \f2num\fP\f3;\fP
69 \f3author\fP \f2id\fP\f3;\fP
70 \f3state\fP {\f2id\fP}\f3;\fP
71 \f3branches\fP {\f2num\fP}*\f3;\fP
72 \f3next\fP {\f2num\fP}\f3;\fP
75 \f2desc\fP ::= \f3desc\fP \f2string\fP
77 \f2deltatext\fP ::= \f2num\fP
78 \f3log\fP \f2string\fP
80 \f3text\fP \f2string\fP
82 \f2num\fP ::= {\f2digit\fP | \f3.\fP}+
84 \f2digit\fP ::= \f30\fP | \f31\fP | \f32\fP | \f33\fP | \f34\fP | \f35\fP | \f36\fP | \f37\fP | \f38\fP | \f39\fP
86 \f2id\fP ::= {\f2num\fP} \f2idchar\fP {\f2idchar\fP | \f2num\fP}*
88 \f2sym\fP ::= {\f2digit\fP}* \f2idchar\fP {\f2idchar\fP | \f2digit\fP}*
90 \f2idchar\fP ::= any visible graphic character except \f2special\fP
92 \f2special\fP ::= \f3$\fP | \f3,\fP | \f3.\fP | \f3:\fP | \f3;\fP | \f3@\fP
94 \f2string\fP ::= \f3@\fP{any character, with \f3@\fP doubled}*\f3@\fP
96 \f2newphrase\fP ::= \f2id\fP \f2word\fP* \f3;\fP
98 \f2word\fP ::= \f2id\fP | \f2num\fP | \f2string\fP | \f3:\fP
101 Identifiers are case sensitive. Keywords are in lower case only.
102 The sets of keywords and identifiers can overlap.
103 In most environments \*r uses the \s-1ISO\s0 8859/1 encoding:
104 visible graphic characters are codes 041\-176 and 240\-377,
105 and white space characters are codes 010\-015 and 040.
107 Dates, which appear after the
109 keyword, are of the form
110 \f2Y\fP\f3.\fP\f2mm\fP\f3.\fP\f2dd\fP\f3.\fP\f2hh\fP\f3.\fP\f2mm\fP\f3.\fP\f2ss\fP,
126 contains just the last two digits of the year
127 for years from 1900 through 1999,
128 and all the digits of years thereafter.
129 Dates use the Gregorian calendar; times use UTC.
133 productions in the grammar are reserved for future extensions
134 to the format of \*r files.
137 will begin with any keyword already in use.
141 nodes form a tree. All nodes whose numbers
142 consist of a single pair
143 (e.g., 2.3, 2.1, 1.3, etc.)
144 are on the trunk, and are linked through the
146 field in order of decreasing numbers.
151 node points to the head of that sequence (i.e., contains
155 node in the admin node indicates the default
156 branch (or revision) for most \*r operations.
157 If empty, the default
158 branch is the highest branch on the trunk.
162 nodes whose numbers consist of
166 (e.g., 3.1.1.1, 2.1.2.2, etc.)
167 are linked as follows.
168 All nodes whose first
170 number fields are identical are linked through the
172 field in order of increasing numbers.
173 For each such sequence,
176 node whose number is identical to the first
178 number fields of the deltas on that sequence is called the branchpoint.
181 field of a node contains a list of the
182 numbers of the first nodes of all sequences for which it is a branchpoint.
183 This list is ordered in increasing numbers.
185 The following diagram shows an example of an \*r file's organization.
199 / \ / \ | 2.1 | / \ / \
201 /1.2.1.3\ /1.3.1.1\ | | /1.2.2.2\ /1.2.2.1.1.1\
202 --------- --------- --------- --------- -------------
206 / \ | --------- / \ |
208 / \ ---------\ / / \-----------
209 /1.2.1.1\ \ / /1.2.2.1\
210 --------- \ / ---------
216 ----------------------\ /---------
236 .\" -2.0625 -4.25 1.75 0
237 .\" 0.000i 4.250i 3.812i 0.000i
244 \h'2.062i-(\w'Head'u/2u)'\v'0.125i-(0v/2u)+0v+0.22m'Head
246 \h'2.062i'\v'0.250i'\D'l0.000i 0.500i'
248 \h'2.087i'\v'0.650i'\D'l-0.025i 0.100i'
250 \h'2.062i'\v'0.750i'\D'l-0.025i -0.100i'
252 \h'1.688i'\v'1.250i'\D'l0.750i 0.000i'
254 \h'2.438i'\v'1.250i'\D'l0.000i -0.500i'
256 \h'2.438i'\v'0.750i'\D'l-0.750i 0.000i'
258 \h'1.688i'\v'0.750i'\D'l0.000i 0.500i'
261 \h'2.062i-(\w'2.1'u/2u)'\v'1.000i-(0v/2u)+0v+0.22m'2.1
263 \h'2.062i'\v'1.250i'\D'l0.000i 0.500i'
265 \h'2.087i'\v'1.650i'\D'l-0.025i 0.100i'
267 \h'2.062i'\v'1.750i'\D'l-0.025i -0.100i'
270 \h'2.062i-(\w'1.3'u/2u)'\v'2.000i-(1v/2u)+0v+0.22m'1.3
272 \h'2.062i'\v'2.250i'\D'l-0.375i -0.500i'
274 \h'1.688i'\v'1.750i'\D'l0.750i 0.000i'
276 \h'2.438i'\v'1.750i'\D'l-0.375i 0.500i'
278 \h'1.875i'\v'2.000i'\D'~-0.500i 0.000i 0.000i -0.500i'
280 \h'1.350i'\v'1.600i'\D'l0.025i -0.100i'
282 \h'1.375i'\v'1.500i'\D'l0.025i 0.100i'
285 \h'1.375i-(\w'1.3.1.1'u/2u)'\v'1.250i-(1v/2u)+1v+0.22m'1.3.1.1
287 \h'1.375i'\v'1.000i'\D'l-0.375i 0.500i'
289 \h'1.000i'\v'1.500i'\D'l0.750i 0.000i'
291 \h'1.750i'\v'1.500i'\D'l-0.375i -0.500i'
293 \h'2.062i'\v'2.250i'\D'l0.000i 0.500i'
295 \h'2.087i'\v'2.650i'\D'l-0.025i 0.100i'
297 \h'2.062i'\v'2.750i'\D'l-0.025i -0.100i'
300 \h'2.062i-(\w'1.2'u/2u)'\v'3.000i-(1v/2u)+0v+0.22m'1.2
302 \h'2.062i'\v'3.250i'\D'l-0.375i -0.500i'
304 \h'1.688i'\v'2.750i'\D'l0.750i 0.000i'
306 \h'2.438i'\v'2.750i'\D'l-0.375i 0.500i'
308 \h'1.875i'\v'3.000i'\D'~-0.500i 0.000i -0.500i 0.000i -0.500i 0.000i 0.000i -0.500i'
310 \h'0.350i'\v'2.600i'\D'l0.025i -0.100i'
312 \h'0.375i'\v'2.500i'\D'l0.025i 0.100i'
315 \h'0.375i-(\w'1.2.1.1'u/2u)'\v'2.250i-(1v/2u)+1v+0.22m'1.2.1.1
317 \h'0.375i'\v'2.000i'\D'l-0.375i 0.500i'
319 \h'0.000i'\v'2.500i'\D'l0.750i 0.000i'
321 \h'0.750i'\v'2.500i'\D'l-0.375i -0.500i'
323 \h'0.375i'\v'2.000i'\D'l0.000i -0.500i'
325 \h'0.350i'\v'1.600i'\D'l0.025i -0.100i'
327 \h'0.375i'\v'1.500i'\D'l0.025i 0.100i'
330 \h'0.375i-(\w'1.2.1.3'u/2u)'\v'1.250i-(1v/2u)+1v+0.22m'1.2.1.3
332 \h'0.375i'\v'1.000i'\D'l-0.375i 0.500i'
334 \h'0.000i'\v'1.500i'\D'l0.750i 0.000i'
336 \h'0.750i'\v'1.500i'\D'l-0.375i -0.500i'
338 \h'2.250i'\v'3.000i'\D'~0.500i 0.000i 0.000i -0.500i'
340 \h'2.725i'\v'2.600i'\D'l0.025i -0.100i'
342 \h'2.750i'\v'2.500i'\D'l0.025i 0.100i'
345 \h'2.750i-(\w'1.2.2.1'u/2u)'\v'2.250i-(1v/2u)+1v+0.22m'1.2.2.1
347 \h'2.750i'\v'2.000i'\D'l-0.375i 0.500i'
349 \h'2.375i'\v'2.500i'\D'l0.750i 0.000i'
351 \h'3.125i'\v'2.500i'\D'l-0.375i -0.500i'
353 \h'2.938i'\v'2.250i'\D'~0.500i 0.000i 0.000i -0.500i 0.000i -0.500i'
355 \h'3.413i'\v'1.350i'\D'l0.025i -0.100i'
357 \h'3.438i'\v'1.250i'\D'l0.025i 0.100i'
360 \h'3.438i-(\w'\s-21.2.2.1.1.1\s0'u/2u)'\v'1.000i-(1v/2u)+1v+0.22m'\s-21.2.2.1.1.1\s0
362 \h'3.438i'\v'0.750i'\D'l-0.375i 0.500i'
364 \h'3.062i'\v'1.250i'\D'l0.750i 0.000i'
366 \h'3.812i'\v'1.250i'\D'l-0.375i -0.500i'
368 \h'2.750i'\v'2.000i'\D'l0.000i -0.500i'
370 \h'2.725i'\v'1.600i'\D'l0.025i -0.100i'
372 \h'2.750i'\v'1.500i'\D'l0.025i 0.100i'
375 \h'2.750i-(\w'1.2.2.2'u/2u)'\v'1.250i-(1v/2u)+1v+0.22m'1.2.2.2
377 \h'2.750i'\v'1.000i'\D'l-0.375i 0.500i'
379 \h'2.375i'\v'1.500i'\D'l0.750i 0.000i'
381 \h'3.125i'\v'1.500i'\D'l-0.375i -0.500i'
383 \h'2.062i'\v'3.250i'\D'l0.000i 0.500i'
385 \h'2.087i'\v'3.650i'\D'l-0.025i 0.100i'
387 \h'2.062i'\v'3.750i'\D'l-0.025i -0.100i'
390 \h'2.062i-(\w'1.1'u/2u)'\v'4.000i-(1v/2u)+0v+0.22m'1.1
392 \h'2.062i'\v'4.250i'\D'l-0.375i -0.500i'
394 \h'1.688i'\v'3.750i'\D'l0.750i 0.000i'
396 \h'2.438i'\v'3.750i'\D'l-0.375i 0.500i'
410 Author: Walter F. Tichy,
411 Purdue University, West Lafayette, IN, 47907.
413 Manual Page Revision: \*(Rv; Release Date: \*(Dt.
415 Copyright \(co 1982, 1988, 1989 Walter F. Tichy.
417 Copyright \(co 1990, 1991, 1992, 1993, 1994, 1995 Paul Eggert.
419 rcsintro(1), ci(1), co(1), ident(1), rcs(1), rcsclean(1), rcsdiff(1),
423 \*r\*-A System for Version Control,
424 .I "Software\*-Practice & Experience"
426 7 (July 1985), 637-654.