A quick "HOWTO" to finish the week. The version of TortoiseHG available in MacPorts is hopelessly outdated. So here's what I did to get the latest version of it working on a Mac.
sudo port install python27 py27-pyqt4 py27-qscintilla py27-iniparse py27-sphinx
cd Documents
hg clone http://bitbucket.org/tortoisehg/thg/
Then, I create a simple wrapper inside the new thg
directory called thg.sh
, since TortoiseHG needs to use other Python 2.7 binaries:
#!/bin/bash
export PATH=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin:$PATH
python `dirname $0`/thg $*
Finally, I add the following to my ~/.profile
:
alias thg='~/Documents/thg/thg.sh'
That's it! You can now do thg help
. Also, to keep TortoiseHG up-to-date, go inside the thg
directory and run hg pull -u
.
Published on August 10, 2012 at 21:17 EDT
Older post: Rubber Duck Programming
Newer post: Full Metal Jacket