RCSMERGE(1) RCSMERGE(1) 名称 rcsmerge - RCS ファイルのリビジョンを併合する 書式 rcsmerge [options] file 解説 rcsmerge は RCS の 2 つのリビジョン間の変更点を対応するワークファイルに 適用します。 RCS 拡張子にマッチするパス名は RCS ファイルであるとみなし、その他はワー クファイルであるとみなします。名前の対応については ci(1) を参照してくだ さい。 後述するオプション(通常は -r )によって、少なくとも1つのリビジョンを指定 する必要があります。最大で 2 つのリビジョンを指定することができます。 1 つのリビジョンのみが指定された場合、もう1つのリビジョンとして、デフォル ト枝(通常は幹で最大の番号を持つ枝) の最新リビジョンが用いられます。リビ ジョンは、数字またはシンボルで指定できます。 もし重複が発生すると、 rcsmerge は警告メッセージを表示し、重複した領 域 を merge(1) で説明されているような形式で出力します。本コマンドはチェッ クアウトしたリビジョンに一連の変更を加えるのに便利です。 オプション -A もしサポートされていれば、 diff3(1) の -A スタイルで矛盾点を出力 し ます。 file2 から file3 への変更点全てを file1 に適用し、大変 詳細な情報を出力します。 -E, -e これらは、 -A よりも情報量が少ない形式で矛盾点を出力するスタイル を指定するものです。詳細は diff3(1) を参照して下さい。デフォルト は -E です。 -e を指定すると、 rcsmerge は矛盾点の警告を行ないま せん。 -ksubst キ ーワード置換において、 subst で指定された形式を用います。詳細 は co(1) を参照してください。例えば、 -kk -r1.1 -r1.2 は 1.1 か ら 1.2 への変更を併合する際に、キーワードの違いを無視します。バ イナリファイルをテキストであるかのようにリビジョン併合することは 、 普通、意味を持ちません。ですから rcsmerge は -kb が指定されて いるとファイルのリビジョン併合を行ないません。 -p[rev] 結果をワークファイルに上書きせずに、標準出力に書き出します。 -q[rev] 静かに動作します。診断メッセージは表示されません。 -r[rev] リビジョン rev に関して併合を行います。 rev を指定しない場合は、 デフォルト枝の最新リビジョン(通常は先頭)を使用します。 -T このオプションは意味を持ちません。他の RCS コマンドとの互換性の ために存在します。 -V RCS のバージョン番号を表示します。 -Vn RCS システムのバージョン n のエミュレーションを行います。詳細 は co(1) を参照してください。 -xsuffixes RCS ファイル拡張子を suffixes とします。詳しくは ci(1) を参照し てください。 -zzone キーワード置換時のタイムゾーンを zone とします。詳しく は co(1) を参照してください。 使用例 す でにリリースしたリビジョン 2.8 の f.c というファイルがあるとします。 ここで、まだリリースしていないリビジョン 3.4 が完成したときに、他人から 2.8 を改良したものを受けとったとします。この改良と、あなたが 2.8 から 3.4 の間に行った変更を併合するには次のようにします。 rcsmerge -p -r2.8 -r3.4 f.c >f.merged.c ここで、併合された f.merged.c を検査します。もし、2.8 に対する更新部 分 を RCS ファイル中に保存しておきたいと考えるなら、それを 2.8.1.1 という リビジョンでチェックインし、その後で co -j を実行します。 ci -r2.8.1.1 f.c co -r3.4 -j2.8:2.8.1.1 f.c 別の例として、以下のコマンドはリビジョン 2.4 から 2.8 への変更をすで に チェックアウトいるワークファイル f.c から取り消します。 rcsmerge -r2.8 -r2.4 f.c 指定するリビジョン番号の順番に注意してください。また、 f.c が上書きされ ることにも注意してください。 環境変数 RCSINIT コマンドライン引数に先立って指定すべきオプションを空白で区切って 指定します。詳しくは ci(1) を参照してください。 診断 併 合によって重複が生じなければ終了ステータス 0 を、重複があれば 1 を、 問題が発生した場合は 2 を返します。 作者 Author: Walter F. Tichy. Manual Page Revision: 1.5; Release Date: 1999/08/27. Copyright © 1982, 1988, 1989 Walter F. Tichy. Copyright © 1990, 1991, 1992, 1993, 1994, 1995 Paul Eggert. 関連項目 ci(1), co(1), ident(1), merge(1), rcs(1), rcsdiff(1), rcsintro(1), rlog(1), rcsfile(5) Walter F. Tichy, RCS--A System for Version Control, Software--Practice & Experience 15, 7 (July 1985), 637-654. GNU 1999/08/27 RCSMERGE(1)
RCSMERGE(1) RCSMERGE(1) NAME rcsmerge - merge RCS revisions SYNOPSIS rcsmerge [options] file DESCRIPTION rcsmerge incorporates the changes between two revisions of an RCS file into the corresponding working file. Pathnames matching an RCS suffix denote RCS files; all others denote working files. Names are paired as explained in ci(1). At least one revision must be specified with one of the options described below, usually -r. At most two revisions may be specified. If only one revision is specified, the latest revision on the default branch (normally the highest branch on the trunk) is assumed for the second revision. Revisions may be specified numerically or symboli- cally. rcsmerge prints a warning if there are overlaps, and delimits the over- lapping regions as explained in merge(1). The command is useful for incorporating changes into a checked-out revision. OPTIONS -A Output conflicts using the -A style of diff3(1), if supported by diff3. This merges all changes leading from file2 to file3 into file1, and generates the most verbose output. -E, -e These options specify conflict styles that generate less infor- mation than -A. See diff3(1) for details. The default is -E. With -e, rcsmerge does not warn about conflicts. -ksubst Use subst style keyword substitution. See co(1) for details. For example, -kk -r1.1 -r1.2 ignores differences in keyword val- ues when merging the changes from 1.1 to 1.2. It normally does not make sense to merge binary files as if they were text, so rcsmerge refuses to merge files if -kb expansion is used. -p[rev] Send the result to standard output instead of overwriting the working file. -q[rev] Run quietly; do not print diagnostics. -r[rev] Merge with respect to revision rev. Here an empty rev stands for the latest revision on the default branch, normally the head. -T This option has no effect; it is present for compatibility with other RCS commands. -V Print RCS’s version number. -Vn Emulate RCS version n. See co(1) for details. -xsuffixes Use suffixes to characterize RCS files. See ci(1) for details. -zzone Use zone as the time zone for keyword substitution. See co(1) for details. EXAMPLES Suppose you have released revision 2.8 of f.c. Assume furthermore that after you complete an unreleased revision 3.4, you receive updates to release 2.8 from someone else. To combine the updates to 2.8 and your changes between 2.8 and 3.4, put the updates to 2.8 into file f.c and execute rcsmerge -p -r2.8 -r3.4 f.c >f.merged.c Then examine f.merged.c. Alternatively, if you want to save the updates to 2.8 in the RCS file, check them in as revision 2.8.1.1 and execute co -j: ci -r2.8.1.1 f.c co -r3.4 -j2.8:2.8.1.1 f.c As another example, the following command undoes the changes between revision 2.4 and 2.8 in your currently checked out revision in f.c. rcsmerge -r2.8 -r2.4 f.c Note the order of the arguments, and that f.c will be overwritten. ENVIRONMENT RCSINIT options prepended to the argument list, separated by spaces. See ci(1) for details. DIAGNOSTICS Exit status is 0 for no overlaps, 1 for some overlaps, 2 for trouble. IDENTIFICATION Author: Walter F. Tichy. Manual Page Revision: 5.6; Release Date: 1995/06/01. Copyright © 1982, 1988, 1989 Walter F. Tichy. Copyright © 1990, 1991, 1992, 1993, 1994, 1995 Paul Eggert. SEE ALSO ci(1), co(1), ident(1), merge(1), rcs(1), rcsdiff(1), rcsintro(1), rlog(1), rcsfile(5) Walter F. Tichy, RCS--A System for Version Control, Software--Practice & Experience 15, 7 (July 1985), 637-654. GNU 1995/06/01 RCSMERGE(1)
Copyright(C) linux-cmd.com All Rights Reserved. Author Takayuki Yukawa