Committing Changes to Mercurial Version Control

From RAD Studio
Jump to: navigation, search

Go Up to Mercurial Integration in the IDE


Committing the changes of a file or project saves it to the local repository.

To commit a specific file

  1. In the Project Manager, right-click the file that you want to commit.
  2. In the context menu, select Mercurial > Commit. The Commit (Mercurial) pane appears in the main window of the IDE.
  3. Enter a comment for the log in the Comment field. You can see (or select) comments from previous committed versions.
  4. Click Commit. The version control system displays results in the Messages View.


To commit a directory or an entire project

  1. In the Project Manager, right-click the folder or the project that you want to commit.
  2. In the context menu, select Mercurial > Commit.
  3. Under the Commit command in the context menu, select one of the following subcommands:
    • From Repository Root searches up the directory tree to find the last directory managed by the same repository as the project file and then adds to the commit pane all the files in that directory and below.
    • From Project Directory adds to the commit pane all the files in the project directory and below.
  4. The Commit (Mercurial) pane appears in the main window of the IDE. Select the files you want to commit in the Commit to: Location field.
  5. Enter a comment for the log in the Comment field. You can see comments from previous committed versions.
  6. Click Commit. The version control system displays results in the Messages View.


Note: To commit the changes to your remote repository in Mercurial, push your changes to a remote repository.
Note: The Commit dialog box does not display renamed files. You need to click Show unversioned files and select the renamed files so they are added to the commit.

See Also