How do I set SourceTree to use the System Mercurial at /usr/local/bin/hg?

My Mercurial installation is in /usr/local/bin/hg, but I can't browse to that file. That is the location to which the Mercurial installation program put it.

1 answer

This widget could not be displayed.

In Preferences > Mercurial, when you click 'Use System Mercurial', SourceTree will detect the location of the system Mercurial for you but then let you browse if you want to change it.

Note, however, that Mercurial is actually a set of Python packages. The 'hg' command that you call is actually just a very thin wrapper which launches these packages. That's why the 'Use System Mercurial' dialog will probably open at /Library/Python/2.7/site-packages/mercurial - that's actually where the real Mercurial software is, and it's also where the Mercurial installer puts 99% of the files it installs. It's this which is the unambiguous part of the Mercurial install, not the hg script.

Andrew Swan Atlassian Team Jul 20, 2014

/Library/Python/2.7/site-packages/mercurial isn't where homebrew puts it - what directory should homebrew users select in this dialog?

mine is located at /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial

this works for homebrew: /usr/local/lib/python2.7/site-packages/mercurial/

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted 3 hours ago in Europe

Topic Tuesday: How did you learn about the AUG programme?

Back in 2010 I hadn't been using the Atlassian tools (JIRA, Confluence, Bamboo) that long and I started searching online to see if I could chat to other users primarily about how they used the produc...

12 views 0 0
View post

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you