1 .\" $NetBSD: rcsmerge.1,v 1.4 1996/10/15 07:00:45 veego Exp $
7 .\" Id: rcsmerge.1,v 5.6 1995/06/01 16:23:43 eggert Exp
11 .TH RCSMERGE 1 \*(Dt GNU
13 rcsmerge \- merge RCS revisions
16 .RI [ options ] " file"
19 incorporates the changes between two revisions
20 of an \*r file into the corresponding working file.
22 Pathnames matching an \*r suffix denote \*r files;
23 all others denote working files.
24 Names are paired as explained in
27 At least one revision must be specified with one of the options
28 described below, usually
30 At most two revisions may be specified.
31 If only one revision is specified, the latest
32 revision on the default branch (normally the highest branch on the trunk)
33 is assumed for the second revision.
34 Revisions may be specified numerically or symbolically.
37 prints a warning if there are overlaps, and delimits
38 the overlapping regions as explained in
40 The command is useful for incorporating changes into a checked-out revision.
44 Output conflicts using the
50 This merges all changes leading from
56 and generates the most verbose output.
59 These options specify conflict styles that generate less information
70 does not warn about conflicts.
75 style keyword substitution.
80 .B "\-kk\ \-r1.1\ \-r1.2"
81 ignores differences in keyword values when merging the changes from
85 It normally does not make sense to merge binary files as if they were text, so
87 refuses to merge files if
92 Send the result to standard output instead of overwriting the working file.
95 Run quietly; do not print diagnostics.
98 Merge with respect to revision
102 stands for the latest revision on the default branch, normally the head.
105 This option has no effect;
106 it is present for compatibility with other \*r commands.
109 Print \*r's version number.
121 to characterize \*r files.
129 as the time zone for keyword substitution.
134 Suppose you have released revision 2.8 of
137 furthermore that after you complete an unreleased revision 3.4, you receive
138 updates to release 2.8 from someone else.
139 To combine the updates to 2.8 and your changes between 2.8 and 3.4,
140 put the updates to 2.8 into file f.c and execute
142 .B " rcsmerge \-p \-r2.8 \-r3.4 f.c \*[Gt]f.merged.c"
146 Alternatively, if you want to save the updates to 2.8 in the \*r file,
147 check them in as revision 2.8.1.1 and execute
150 .B " ci \-r2.8.1.1 f.c"
152 .B " co \-r3.4 \-j2.8:2.8.1.1 f.c"
154 As another example, the following command undoes the changes
155 between revision 2.4 and 2.8 in your currently checked out revision
159 .B " rcsmerge \-r2.8 \-r2.4 f.c"
161 Note the order of the arguments, and that
168 options prepended to the argument list, separated by spaces.
173 Exit status is 0 for no overlaps, 1 for some overlaps, 2 for trouble.
175 Author: Walter F. Tichy.
177 Manual Page Revision: \*(Rv; Release Date: \*(Dt.
179 Copyright \(co 1982, 1988, 1989 Walter F. Tichy.
181 Copyright \(co 1990, 1991, 1992, 1993, 1994, 1995 Paul Eggert.
183 ci(1), co(1), ident(1), merge(1), rcs(1), rcsdiff(1), rcsintro(1), rlog(1),
187 \*r\*-A System for Version Control,
188 .I "Software\*-Practice \*[Am] Experience"
190 7 (July 1985), 637-654.