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