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

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.

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. 

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

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 11, 2018 in Sourcetree

Tip from the team: debugging Sourcetree

Supported Platforms macOS Windows If you're reading this and it's not just educational… we know you're unhappy right now and apologize for that   We're dedicated to improving yo...

706 views 10 6
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