Mercurial
Last modified: 21 July 2022Mercurial support
When Mercurial integration with JetBrains Rider is enabled, the Mercurial option appears in the VCS menu, and in the context menus of the editor and Solution Explorer.
The files in the folders under the Mercurial control are highlighted according to their status. See File status highlights for file status highlighting conventions.
Modifications results are shown in the Commit tool window .
When using Mercurial integration, it is helpful to open the Console tab of the Mercurial tool window Alt+9, which displays the following data:
All commands generated based on the settings you specify through the JetBrains Rider user interface.
Information messages concerning the results of executing generated Mercurial commands.
Error messages.
Set up Mercurial
Make sure that Mercurial is installed on your computer.
Configure Mercurial executable
Press Ctrl+Alt+S to open the IDE settings and select Version Control | Mercurial.
In the Path to Mercurial executable field, specify the path to hg executable.
If you followed the standard installation procedure, the default location is
/Applications or/TortoiseHg.app /Contents /MacOS /hg /usr for Linux and macOS and/local /bin /Program Files for Windows./TortoiseHG It is recommended that you add the path to the Mercurial executable file to the
PATH
variable. In this case, you can specify only the executable name, the full path to the executable location is not required.Click Test to make sure the path is specified correctly. Apply the changes and close the dialog.
Enable Mercurial integration for your project
Press N/A to open the VCS Operations Popup and select Enable Version Control Integration.
Alternatively, from the main menu, select VCS | Enable Version Control Integration.
In the Enable Version Control Integration dialog that opens, select Mercurial.
Click OK to apply the changes.
tip
If you want to use a remote repository, create a Mercurial hosting account first. You can access the remote repository through a pair of ssh keys or apply the username/password and keyboard interactive authentication methods supported by the Mercurial integration.