Mercurial not found

After updating TortoiseHg from v3.9.2 to v4.0, SourceTree now reports "Mercurial not found" when launched. The Mercurial executable file hg.exe still exists in C:\Program Files\TortoiseHg. The SourceTree dialog has a "Browse to the location of Mercurial" button, but it does not do anything (expected behavior: a file explorer window would open so I could point to hg.exe; observed behavior: no explorer window opens, and the SourceTree dialog simply reappears with the same message). Is anybody else seeing this? Does SourceTree perhaps not recognize Mercurial v4.0? (Windows 10 Pro, 64-bit, SourceTree 1.9.6.1).

2 answers

This widget could not be displayed.

Follow-up: SourceTree v1.6.22.0 does not have this problem. The issue manifested in 1.9.6.1 and 1.9.6.2, but went away when I uninstalled and reverted to 1.6.22.0.

This widget could not be displayed.

Just installed fresh 1.9.10.0 on a clean machine. Same problem, it wouldn't let me use the system git and mercurial. I had to let the application download internal ones as there was no other option to use it.

The "use system mercurial" button in the Options does nothing.

FWIW, the "Use System Mercurial" button still does nothing in SourceTree v2.0.19.1. Like you (and others, I'm sure), I'm stuck with SourceTree using its out-of-date embedded version of Mercurial, 3.7.3, although the latest Mercurial 4.1.3 is installed and working on my machine.

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
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

710 views 1 3
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