System Mercurial in non-standard location (Mac)

I installed Mercurial via HomeBrew, which puts it into /usr/local/Cellar/mercurial . This means I can't use the system Mercurial in SourceTree, because it complains about the location. Any work arounds for this?

3 answers

I have Mercurial installed using Homebrew, this path worked for me:


Note: you may have to tweak the mercurial version number. Also, when I attempted to link to the hg file in /usr/local/Cellar/mercurial/3.8.4/bin/ or the link in /usr/local/bin/hg it did not work.

SourceTree has the same problem with git and gpg, somehow it doesn't like symlinks which is very annoying on an *nix system.

I'm not familiar with HomeBrew. Can you put a symlink to mercurial in the location SourceTree expects?

Apparently SourceTree is on to that kind of trick. sad

At this point it might be helpful to share what error messages you're getting.

"Mercurial was not found on on your system in the standard locations; the SourceTree internal version will be used."

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

960 views 4 2
Read article

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