[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cvs-ml 595] Re: Branch の統合
From: 川村圭司 Keiji KAWAMURA <kawamura@srd.mci.mei.co.jp>
Subject: [cvs-ml 593] Branch の統合
Date: Wed, 7 Jun 2000 10:04:12 +0900
| いま, 以下のように Rel-0 と Rel-0.1 とを branch させたソースツリーがあっ
| て,
|
| Rel-0
| ---+-----------------------
| |
| |
| +----------+---------+--
| Rel-0.1 Rel-0.2 Rel-0.3
|
| Rel-0 のソースを全部すてて, Rel-0.3 のソースを Rel-1 として統合させた
| い場合にはどの様にすれば一番手間がかからないでしょうか?.
Rel-0 Current
---+--------------------+--
|
|
+----------+---------+--
Rel-0.1 Rel-0.2 Rel-0.3 (すべてリビジョン・タグです)
こんなかんじでどうでしょう。(無保証です)
Currentのworking directoryで作業します。
working directoryは
(1) とりあえず修正内容をcommitするか
(2) cvs update -Cで修正を捨るか、最新版のCVSでなければ..
(3) rm FILE; cvs update FILEで修正を捨てて
Up-to-date状態にしておきます。
まずRel-0まで戻す。
% cvs update -j Current -j Rel-0
cvs update: Updating .
RCS file: /.../FILE,v
retrieving revision x.x
retrieving revision y.y
Merging differences between x.x and y.y into FILE
...
そして〈Rel-0→Rel-0.3〉の修正をマージする。
% cvs update -j Rel-0.3
...
%
タグづけ
% cvs commit -m "....."
cvs commit: Examining .
Checking in FILE;
/.../FILE,v <-- FILE
new revision: z.z; previous revision: w.w
...
% cvs tag Rel-1
cvs tag: Tagging .
T FILE
...
%
--
KOIE Hidetaka 鯉江英隆 <hide@koie.org>