【HG】 Mercurial(HG) ~入門編~

  ■ はじめに

 * 分散リポジトリの一つである「Mercurial(HG)」について、記す

  分散リポジトリ

 *  分散リポジトリについては、以下の関連記事を参照のこと。
http://blogs.yahoo.co.jp/dk521123/36064661.html

 

  ■ Mercurial(HG)について

 * Mercurialは「水銀」という意味も持ち、コマンド名は、水銀の元素記号「HG」
 * Pythonで実装

 

  ■ サポート・ツール

 [1] TortoiseHG
 [2] Mercurial Eclipse

  TortoiseHG

 * TortoiseSVNMercurial版
 * コミットや、ログ表示、差分表示、同期(プッシュ/プル)などの基本的な操作可能

  Mercurial Eclipse

 * Eclipseプラグイン
設定
[1] Eclipse で、[Help]-[Install New Software...]を選択
[2] 「Work with:」欄に「https://bitbucket.org/mercurialeclipse/update-site/raw/default/」を入力し、
    Enterキー押下
[3] 「MercurialEclipse Stable Releases」にチェックを入れて、「Next」ボタン押下
[4] 「Next」ボタン押下
[5] 「I accept the terms of the license agreement」にチェックを入れて、「Finish」ボタン押下
 => 後は、流れに従いインストールし、Eclipseを再起動

 

  ■ 初期設定

  Windowsでの設定

TortoiseHGの設定
[1] 以下のサイトから TortoiseHG をダウンロードする(今回は「tortoisehg-3.8.4-x64.msi」)
http://tortoisehg.bitbucket.org/ja/
[2] ダウンロードしたインストーラを起動し、インストールする

  Linuxでの設定

 * 以下の関連記事を参照のこと。
http://blogs.yahoo.co.jp/dk521123/36290337.html

 

  ■ 基本的なコマンド

  ソースを持ってくる

hg clone コピー元 コピー先

# hg clone http://xxx