In this area, specify whether you want WebStorm to detect incoming and outgoing changes in the background mode.
|Path to hg executable||
In this area define the location of the Mercurial executable file.
|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, WebStorm itself does not read the bash configuration file with required environment variables and settings during start-up, so attempts to run Mercurial from WebStorm without bash already running fail with the error message "Hg executable invalid" or similar.
When this check box is selected, WebStorm first starts bash, reads the required environment variables and configuration settings, and runs Mercurial successfully.