macports から mercurial を入れてみた
目的
- ソースコード管理したかった
- なんで?
- GAE でアプリ開発してて、同じファイルを何度も消したり書いたりして、何がどうなったかわかんなくなってきたから
- git にしなかったのはなんかよく聞くから外したかった
- なんで?
インストール
$ sudo port install mercurial Password: ---> Computing dependencies for mercurial ---> Fetching python26 ---> Attempting to fetch Python-2.6.4.tar.bz2 from http://distfiles.macports.org/python26 ---> Verifying checksum(s) for python26 ---> Extracting python26 ---> Applying patches to python26 ---> Configuring python26 ---> Building python26 ---> Staging python26 into destroot ---> Installing python26 @2.6.4_0+darwin ---> Activating python26 @2.6.4_0+darwin To fully complete your installation and make python 2.6 the default, please run sudo port install python_select sudo python_select python26 ---> Cleaning python26 ---> Fetching mercurial ---> Attempting to fetch mercurial-1.4.tar.gz from http://distfiles.macports.org/python ---> Verifying checksum(s) for mercurial ---> Extracting mercurial ---> Configuring mercurial ---> Building mercurial ---> Staging mercurial into destroot ---> Installing mercurial @1.4_0 ---> Activating mercurial @1.4_0 ---> Cleaning mercurial
動作確認
$ hg Mercurial - 分散構成管理ツール 基本コマンド: add 指定ファイルの追加登録予約 annotate ファイル行毎のリビジョン情報表示 clone 既存リポジトリの複製 commit 指定ファイルないし全ての変更内容のリポジトリへの記録 diff 作業領域全体(ないし指定ファイル)の差分抽出 export 1つ以上のリビジョンに対するヘッダおよび変更内容の出力 forget 次回コミットにおける指定ファイルの登録除外 init 指定されたディレクトリでの新規リポジトリの作成 log リポジトリ全体ないしファイルの変更履歴の表示 merge 作業領域の内容と他のリビジョンのマージ pull 指定リポジトリからの変更履歴の取り込み push 指定リポジトリへの変更履歴の反? remove 次回コミットにおける指定ファイルの登録除外 serve HTTP 経由でのリポジトリの公開 status 作業領域のファイル操作状況の表示 summary 作業領域状態の概要表示 update 作業領域の更新 全コマンドの一覧は "hg help" で、コマンド詳細は "hg -v" で表示されます
まとめ
- 特に問題なくインストールできた
- 一通り使ったらまとめる