Windows 10 64 bit
Whenever I start Sourcetree, I get a warning dialogue about mercurial being out of date:
Your selected Mercurial is older than 3.7.3. The Mercurial team strongly encourages all users to upgrade to 3.7.3 or later due to a security vulnerability. You current configuration is Mercurial is 3.2.3.
In Tools->Options->Mercurial, I click on Update Embedded Mercurial.
It downloads something, then I get an error dialogue saying:
Failed to Extract 7-Zip  16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21 Scanning the drive for archives: 1 file, 8410583 bytes (8214 KiB) Extracting archive: C:\Users\xx\AppData\Local\Atlassian\SourceTree\PortableHg.7z -- Path = C:\Users\xx\AppData\Local\Atlassian\SourceTree\PortableHg.7z Type = 7z Physical Size = 8410583 Headers Size = 3362 Method = LZMA2:24 BCJ Solid = + Blocks = 2 Sub items Errors: 2 Archives with Errors: 1 Sub items Errors: 2
Then under that, there is another dialogue that says:
Download not successful Download either failed or was cancelled, please try again later.
It did download though, so I don't know what that dialogue is all about.
How can I update the embedded mercurial in Sourcetree?
Firstly SourceTree does not currently support Mercurial 4+, unfortunately it breaks some extensions we use. We have a fix in the works and hope to have it out to beta testers soon.
Therefore the highest versions SourceTree will work with is 3.9.2. SourceTree should be able to work with a System install of 3.9.2
Where there are problems updating the embedded Hg.
EMbedded Hg is still using 3.7.3 and the following is the correct URL.
This should get downloaded to
and then unzipped into
If there are problmes downloading I can only assume there is a network connectivity issue getting to https://downloads.atlassian.com or perhaps a proxy on the network?
It is possible the download has succeeded but unzipping has failed, possibly because a file is in use, in that case shutdwn SourceTree and delete the folder %localappdata%\Atlassian\SourceTree\hg_local.
When SourceTree restarts it shoudl re-install the embedded hg.
Thanks for taking the time to reply Michael. Deleting the hg_local folder, re-open SourceTree, a pop-up comes up saying it can't find Mercurial, select the option Download an embedded version, and it now no longer continously displays the Mercurial version warning. The Mercurial version shows as 3.7.3 in Tools->Options. So that problem is solved.
Note that there were in fact no network problems or download issues as you suggest. I stated that in the original post, that it did download ok. So the error message that Sourcetree displays is incorrect. So you might want to open a bug report or something.
Also probably another bug report candidate for having to delete that folder to get the auto-update to work.
Alas, now when I select my repository, I get a popup saying something about not supporting hg-attic shelves anymore, then Sourcetree crashes.
Unfortunately, I cannot spend any more time on trying to get Sourcetree working. I'm using TortoiseHg and everything is fine.
Hi Ana, I have a similiar problem. I just updated from SourceTree 1.9 to 22.214.171.124 and tried to update the Embedded Mercurial. All I get is an error message
"Unable to extract C:\...\PortableHg.7z
Please check your SourceTree options.
System.Net.WebException: Unable to connect to the remote server
System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 126.96.36.199:443"
SourceTree is trying to download from https://downloads.atlassian.com/software/sourcetree/windows/PortableHg_188.8.131.52z.
When I try to access this address in a web browser, I get:
"The requested URL /software/sourcetree/windows/PortableHg_184.108.40.206z. was not found on this server."
OS is Windows 7, 64-bit.
Thanks in advance,
Thanks for the reply Ana. Unfortunately, attempting to Use System Mercurial does not work either. When I click that button, I simply get the Mercurial version warning dialogue again, and when I dismiss it, nothing happens. I seem to recall a folder location dialogue popping up for that in the past, but not now. I have Mercurial 4.1 installed from a TortoiseHg install, and that is included in my path.
Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...
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!
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