1. 安装brew
2. brew cask install tortoisehg
还未实验的其他方法
4. Install TortoiseHg
Clone TortoiseHg repository using Mercurial:
$ hg clone http://bitbucket.org/tortoisehg/thg/ ~/Tools/TortoiseHg
$ cd ~/Tools/TortoiseHg/
$ hg update stable
Quick test. You should see TortoiseHg Workbench running:
$ ./thg log
5. Install TortoiseHg Mac App
Clone thg-mac-app repository
$ hg clone https://bitbucket.org/skrysmanski/thg-mac-app ~/Tools/thg-mac-app
Set the TORTOISEHG_PATH variable
$ cp -p ~/Tools/thg-mac-app/tortoisehg-path.sh ~/
Edit ~/tortoisehg-path.sh
so it points to ~/Tools/TortoiseHg
. This is what ~/tortoisehg-path.sh
looks like after the change:
#!/bin/sh
export TORTOISEHG_PATH=~/Tools/TortoiseHg
Install TortoiseHg.app
[Option + Drag] the TortoiseHg.app from ~/Tools/thg-mac-app
to your Applications folder.