捣鼓了一会儿,最终搞定了。
先把链接贴上来:https://www.jetbrains.com/pycharm/help/mercurial.html
如果你发现你的pycharm在设置mercurial时是这样:


提示找不到hg,怎么办呢?从官网上的话来看,如果你跟我一样是默认安装的话设置成这样就好啦
或者试试另一个/opt/local/bin/hg
If you followed the standard installation procedure, the default location is
/opt/local/binor/usr/local/binfor Linux and OS X and/Program Files/TortoiseHGfor Windows.

测试一下

OK!