Contents
概要
公式サイト
Mercurial binary packages for Windows and Mac OS X
http://www.selenic.com/mercurial/release/
http://www.selenic.com/mercurial/wiki/index.cgi/BinaryPackages
関連サイト
TracMercurial - The Trac Project - Trac
利用プロジェクト
OpenSolaris Source Code Management at OpenSolaris.org:OpenSolarisで利用
インストール
http://www.selenic.com/mercurial/release/
tar xvfz mercurial-1.0.2.tar.gz cd mercurial-1.0.2 sudo python setup.py install
yumなら以下
yum install -y mercurial
XREAとかSakraとかにインストール
www.horaguchi.net - tako3 のソースは今まで、Free Subversion Hosting の Unfuddle に上げてたんだけど、
python setup.py install --home=~
設定
最低限の設定はだいたい以下です
$HOME/.hgrc にコミット時の名前とメルアドを設定します
[ui] username = yourname <sample@sample.com>
$HOME/.hgignoreに無視ファイルを設定します
syntax: glob *~ *.elc *.pyc *.class .svn .semantic.cache .DS_Store TAGS
コマンド
レポジトリ
hg clone path |
リモートよりコピー |
hg init |
初期化 |
hg paths |
push、pull先確認 |
hg push |
パスのレボジトリに反映 |
hg pull |
パスのレボジトリより取得 |
情報
hg status |
ステータス |
hg diff file.txt |
比較 |
hg log |
履歴 |
hg annotate file.txt |
どのリビジョンでどこが変更されたか |
hg tip |
tipリビジョン |
hg parents |
一つ前 |
hg heads |
レポジトリ先端情報 |
コミット
hg add file.txt |
追加 |
hg ci -m "コメント" file.txt |
コミット |
hg remove file.txt |
削除 |
hg update |
更新 |
タグ・ブランチ
基本コマンドはこんな感じ
branch
Mercurial 勉強中 (6) - named branch と update -C - daily dayflower
利用方法
Emacs
DVC: Distributed Version Control for Emacs
DVC - Distributed Version Control for Emacs
Trac連携
CentOSにTrac+TracMercurialをインストールする - Knowledge Database IT
参考サイト
steps to phantasien t(2007-05-19) Mercurial で手軽な共有レポジトリをつくろう
XREA FREE で Mercurial を - miau's blog?
XREAでMercurialをインストール | Sarabande
JapaneseCGI Install - Mercurial
Greenbear Laboratory - Mercurialを使ってみよう