Mercurial 関連の手順早見表

関連項目

次の表に、一般的な Mercurial の作業をまとめています。

行う作業: 手順:
プロジェクトを Mercurial バージョン管理下に置く
  1. Mercurial バージョン管理下に置く、NetBeans プロジェクトを選択します。
  2. Either choose Team > Mercurial > Initialize Repository from the main menu, or
  3. Choose Versioning > Initialize Mercurial Project from the right-click menu of a node in the Projects, Files or Favorites window.

The project is placed under Mercurial control. そのあと、そのプロジェクトファイルをコミットする必要があります。

外部リポジトリをクローンする
  1. Choose Team > (Mercurial >) Clone Other from the main menu.
  2. In the Mercurial Clone Other wizard, specify the location of the Mercurial repository, and click Next.
  3. 親ディレクトリで、クローンを置くコンピュータ上の場所を指定します。
  4. 「クローン名」でクローンの名前を指定します。
  5. 「完了」をクリックして、リモートリポジトリをクローンします。
バージョン情報を表示する
  1. Mercurial 作業用ディレクトリにあるプロジェクト、ディレクトリ、またはファイルを選択します。
  2. Choose Mercurial > Status from the right-click menu of a node in the Projects, Files or Favorites window. 「ステータス」ウィンドウが開き、選択した項目のバージョン管理情報が表示されます。
ファイルを比較する
  1. 比較するファイルを選択します。
  2. 右クリックメニューから「Mercurial」>「相違」を選択します。
プロジェクトを更新する
  1. 更新するプロジェクトを選択します。
  2. 右クリックメニューから「Mercurial」>「更新」を選択します。
  3. リポジトリの内容に一致するように作業ディレクトリが更新されます。
変更をコミットする
  1. コミットするファイルまたはディレクトリを選択します。
  2. 右クリックメニューから「Mercurial」>「コミット」を選択します。
パッチを作成する
  1. Select the locally modified file or folder and choose Team > Export Diff from the main menu.
  2. エクスポートするリビジョンを選択します。
  3. パッチの保存先の名前と場所を入力します。
  4. デフォルトでは /tmp/%b_%r_%h に置かれます。%b はプロジェクト名、%r はリビジョン、%h はチェンジセットの ID です。
  5. 「エクスポート」をクリックします。
パッチをインポートする
  1. Select the Mercurial-versioned Project and choose Team > Import Patches from the main menu.
  2. 適用するパッチファイルのパスを入力するか、そのファイルが場所に移動して選択します。
  3. 「了解」をクリックします。
デフォルトへプッシュする
  1. 変更をプッシュする、クローンした Mercurial プロジェクトを選択します。
  2. 右クリックメニューから「Mercurial」>「デフォルトへプッシュ」を選択します。
  3. クローンの親リポジトリに変更がプッシュされます。
デフォルトからプルする
  1. 変更をプルする、クローンした Mercurial プロジェクトを選択します。
  2. Choose Team > Share > Pull from default from the main menu. クローンの親リポジトリから変更がプルされます。

関連項目
Mercurial について

著作権と商標について