...
The server side of the plugin checks the value of the teamcity.hg.customServerHgPathWhitelist
internal property. The property contains ;-separated list of allowed hg paths to use on the server. If the path specified in VCS root is in whitelist,then it is used on the server. If not, the path specified in the teamcity.hg.server.path
internal property is used. If this property is not set, TeamCity server uses hg
from the $PATH
.
...