IntelliJ IDEA 12.1.0 Web Help

File | Settings | Version Control | Mercurial

IntelliJ IDEA | Preferences | Version Control | Mercurial

Use this page to specify the version control settings to be applied to the directories of your project that are under Mercurial control.

ItemDescription
Changesets In this area, specify whether you want IntelliJ IDEA to detect incoming and outgoing changes in the background mode.
  • Check for incoming changesets - select this check box to have IntelliJ IDEA check for incoming changesets every 5 minutes.
  • Check for outgoing changesets - select this check box to have IntelliJ IDEA check for outgoing changesets every 5 minutes.
Path to hg executable In this area define how IntelliJ IDEA should find the Mercurial executable file.
  • Autodetect hg in PATH - when this option is selected, IntelliJ IDEA tries to find and use the path to the Mercurial executable file specified at the system level in the Path system environment variable.
  • Specify executable path - select this option to specify the location of the Mercurial executable file explicitly. If necessary, click the Browse button browseButton.png and select the directory in the dialog box that opens.
Run hg as 'bash -c <path to hg> Select this check box to start bash script and have Mercurial-related actions converted into commands of format bash -c hg <command>.

This option is helpful if, due to non-standard installation of Mercurial and Python, running Mercurial requires definitions of some environment variables and specific configuration settings that are defined in the bash configuration file .bashrc or .bash_profile. If you run bash and then use the bash console, these variables and settings are read from the configuration file, so Mercurial starts successfully and its commands are executed in the bash console. However, IntelliJ IDEA itself does not read the bash configuration file with required environment variables and settings during start-up, so attempts to run Mercurial from IntelliJ IDEA without bash already running fail with the error message "Hg executable invalid" or similar.

When this check box is selected, IntelliJ IDEA first starts bash, reads the required environment variables and configuration settings, and runs Mercurial successfully.

Note

  • Alternatively, you can define the required environment variables and configuration settings in another file and make this file accessible for IntelliJ IDEA.
  • The check box is not available in Windows.

See Also

Concepts:

Procedures:

Reference:

Web Resources: