Unable to push changes to remote mercurial repo after updating sourcetree

Just updated to Sourcetree 2.3.1.0, Windows 10, and I'm getting the following error when trying to push:

hg commit -y --debug --traceback --logfile C:\Users\Will\AppData\Local\Temp\pyqa52k4.bd5
*** failed to import extension sourcetree_auth from C:\Users\Will\AppData\Local\SourceTree\app-2.3.1\extras\hgext\sourcetree_hg_auth.py: [Errno 2] No such file or directory: 'C:/Users/Will/AppData/Local/SourceTree/app-2.3.1/extras/hgext/sourcetree_hg_auth.py'

Any help much appreciated.

3 answers

1 accepted

This widget could not be displayed.

I think I solved this problem by updating embedded mercurial

Tools -> Options -> Mercurial -> Update Embedded Mercurial

Thanks Victor. I wasn't using embedded hg, but I switched to it and updated and it works fine.

I guess I could have also updated the system version of hg too. 

Updating embedded Mercurial appears to have resolved for me as well.

Thanks Victor, worked for me too. I did have to restart SourceTree for the update to apply.

Thanks a lot! It was the solution. Also have to restart SourceTree like Iain said.

This widget could not be displayed.

Workaround, I manually browsed the Sourcetree directory for my old version C:\Users\username\AppData\Local\SourceTree\app-2.1.11 and ran the SourceTree.exe from there. I opened the old version and I was able to push again.

Thanks Iain. Does Victor's solution work for you?

Yes, it worked for me too. 

This widget could not be displayed.

Having the same issue here, windows 10 and same version of sourcetree

Suggest an answer

Log in or Sign up to answer
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...

878 views 2 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