cvs at ki.nu | commit | import | start w/o import | branch | cvs2 @ki.nu

starting w/o import

では自分の作ったものを cvs で管理しようかなと思って、 cvs add をすると、
cvs add foo 
cvs add: in directory .:
cvs [add aborted]: there is no version here; do 'cvs checkout' first
「えー、まだ何も入れていないから checkout 出来ない」 となってしまう。 でどうするのかと調べると、まずは import してねということになって vender tag って何 ? と、問題がそれていって、解決しない。

それに、版数が 1.1.1.1 とかになってしまって、面倒な気がする。 (実際にはそういう四桁番号は最初だけで、 変更して行くと 1.2 になって戻る)

その番号の問題を避けるだけだったら、何か一つだけ import しておいて、 後は cvs add していくという手もある。

しかし、多分、これはもっと簡単なことではないかと、手動で 1.1 から始める方法。

しまだみつのぶさんの方法

CVSROOT の下に mkdir して checkout すれば良い
http://pure.fan.gr.jp/simm/ms/?20020210#200202103

最近は全てこの方法を使っている。従って以下は単に付足し。 らくらく Emacs 入門 にもこの方法を紹介した。

Entries Repository Root

次のものを手で作る
ttyq3:makoto@u  9:20:36/020827(~/hogehoge)> head CVS/*
==> CVS/Entries <==
D

==> CVS/Repository <==
hogehoge

==> CVS/Root <==
/home/Local-Repository
ttyq3:makoto@u  9:20:41/020827(~/hogehoge)

Repository

ここまでやっておいても、 cvs add すると、
ttyq3:makoto@u  9:24:11/020827(~/hogehoge)> cvs add latex
cvs add: cannot mkdir /home/Local-Repository/hogehoge/latex: No such file or directory
となる。これは保存する先(hogehoge)がないということ。 ので、同様にこれも手で作っておく。この場合は所謂 module 名に相当する。
ttyq3:makoto@u  9:24:16/020827(~/hogehoge)> mkdir /home/Local-Repository/hogehoge

cvs add

これで、やっと本当に cvs add 出来る。
ttyq3:makoto@u  9:25:16/020827(~/hogehoge)> cvs add latex
Directory /home/Local-Repository/hogehoge/latex added to the repository
ttyq3:makoto@u  9:25:35/020827(~/hogehoge)> cvs add latex/kkteikan.tex
cvs add: scheduling file `latex/kkteikan.tex' for addition
cvs add: use 'cvs commit' to add this file permanently
add は単に予約するだけ。

cvs commit

commit して本当に保管庫に入る。
ttyq3:makoto@u  9:26:35/020827(~/hogehoge)> cvs commit -m 'first commit'
cvs commit: Examining .
cvs commit: Examining latex
RCS file: /home/Local-Repository/hogehoge/latex/kkteikan.tex,v
done
Checking in latex/kkteikan.tex;
/home/Local-Repository/hogehoge/latex/kkteikan.tex,v  <--  kkteikan.tex
initial revision: 1.1
done
ttyq3:makoto@u  9:26:47/020827(~/hogehoge)> 
このようなことをしなくても、 cvs admin か何かで出来そうな気がするが。

Last Update

19:53:06 03/12/08
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Apache/2.0.65 (Unix) mod_ssl/2.0.65 OpenSSL/1.0.1g DAV/2 PHP/5.4.26
Count.cgi
(since 2002/08/27)