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

6 votes

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 Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

238 views 0 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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot