Mercurial:将更改提交到资源库
另请参见
在编辑版本控制文件的工作副本后,您可以使用 Mercurial 的“提交”操作将更改提交到资源库中。If you have an issue tracker set up with your repository, the commit dialog box lets you associate your commit action with an existing issue.
将本地文件中的更改提交到资源库:
- 选择一个版本控制文件或文件夹(如从“项目”、“文件”或“收藏夹”窗口中进行选择),然后单击鼠标右键并从弹出式菜单中选择 "Mercurial" >“提交”。将打开“提交”对话框,其中列出了所有包含本地更改的文件。如果要提交的文件已不在资源库中,则提交操作会添加这些文件。
- 在“提交消息”文本区域中输入提交消息,以说明提交的目的。
- 单击对话框右上角的“近期的消息”图标 (
) 以查看近期的提交消息。
- 单击“提交”。IDE 将执行提交操作,并将本地更改发送到资源库中。您还可以从“输出”窗口 (Ctrl-4) 中查看文件被提交到资源库的进度情况。
- 在使用“提交”对话框时,您可以将个别文件从提交中排除。要执行此操作,请单击特定文件的“提交操作”列,然后选择“从提交中排除”。此时,该文件名将显示为删除线文本。
Updating Issues
You can update an issue by associating your commit action with an existing issue in your repository's issue tracker. To do so, click on the Update Issue heading in the Commit dialog box to expand it, then specify the following:
- Issue Tracker: Specify the issue tracker that your repository uses, by selecting an issue tracker from the drop-down list. The drop-down provides you with a list of all issue trackers registered with the IDE. If your repository's issue tracker is not registered, click the New button to register it.
- Issue: Specify the issue ID. You can do this by typing in the ID, or part of the description.
还可以指定以下选项:
- Resolve as FIXED: When selected, the status of the issue is marked as Resolved.
- Add Commit Message from Above: When selected, the commit message is added to the issue.
- Add Revision Information to the Issue: When selected, the issue is updated to include the revision information such as the author, date, etc. You can click Change Format to modify the format of the revision information that is added to the issue.
- Add Issue Information to Commit Message: When selected, the issue ID and summary are added to the commit message. You can click Change Format to modify the format of the issue information that is added to the message.
- After Commit: When selected, the issue is updated after you commit the changes.
- After Push: When selected, the issue is updated only after the changes are pushed to the repository.
忽略文件
如果本地工作目录包含不需要进行版本控制的文件或目录,可以使用“忽略”命令将 IDE 设置为永久忽略这些内容。
- 对于资源库中已存在的文件,则不能使用“忽略”命令。
忽略工作目录中的本地文件:
- 从“项目”、“文件”、“收藏夹”或“状态”窗口中,选择要忽略的文件或目录。
- 右键单击选定的文件或目录,然后从弹出式菜单中选择“忽略”(或 "Mercurial" >“忽略”)。每当为该文件或该文件所存储的目录调用 Mercurial 命令时,IDE 都会忽略它们。
- 要更改忽略文件的状态,以便在 Mercurial 中对其执行操作,请选择特定的文件,然后选择 "Mercurial" >“取消忽略”。
- 另请参见
- 复制外部的 Mercurial 资源库
- 比较文件修订
- About Issue Trackers
- Adding an Issue Tracker
法律声明