Darcs
概要
Darcsはいわゆるバージョン管理システムです。Haskellで実装されています。
CVS置換というよりRCS置換として利用した方が便利。CVS的にも利用できる。
公式サイト
関連サイト
インストール
コンパイルにはGHCが必要ですHaskellを見てインストールしておいてください。
finkでのインストール
finkでインストールする事ができます。
バイナリでGHCをインストールしている場合は
/sw/fink/10.3/unstable/main/finkinfo/devel/darcs.info
を書き換える必要があります。
BuildDepends
からghc (=> 6.2) を削除し、
ConfigureParams
を以下のように変更すればコンパイルできます。
ConfigureParams: --mandir=%p/share/man --sysconfdir=%p/etc GHC=/usr/local/bin/ghc
設定
利用方法
||initialize||Darcsのレポジトリとして新規ソースツリーを初期化します|| ||get||レポジトリ取得||
ステップ バイ ステップ Darcs
mkdir my_project
cd my_project
# 初期化
darcs init
# 全追加
darcs add -r *
# 記録
darcs record -a
# 選択追加
darcs add *.c Makefile.am configure.ac
CVSから移行する場合の違い
Darcs 1.0.1Darcsのマニュアルより
||cvs checkout||darcs get||取得|| ||cvs update||darcs pull||差分取得|| ||cvs -n update||darcs pull --dry-run||リモートの変更を要約|| ||cvs -n update||darcs whatsnew --summary||ローカルの変更を要約|| ||cvs -n update | grep '?'||darcs whatsnew -ls | grep ^a||addすべき変更ファイルのリスト|| ||rm foo.txt; cvs update foo.txt||darcs revert foo.txt||foo.txtを削除|| ||cvs diff||darcs whatsnew||ローカルの変更をチェック|| ||cvs diff||darcs diff||記録された変更をチェック|| ||cvs commit||darcs record||ローカルコミット|| ||cvs commit||darcs tag||後で利用するためにバァージョンに印付け|| ||cvs commit||darcs push or darcs send||リモートにコミット|| ||cvs diff | mail||darcs send|||| ||cvs add||darcs add|||| ||cvs tag -b||darcs get|||| ||cvs tag||darcs tag||||
