要执行此任务: |
请执行以下步骤: |
对项目进行 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. 这将从该副本的父资源库中提取更改。
|