Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Since updating to version 2.0.4 of SourceTree this error appears on startup. "hg status" is failing causing information to not show up in the repository window.
'hg status' failed with code 1:'*** failed to import extension hgext.hgsubversion from /Applications/SourceTree.app/Contents/Resources/mercurial_local/hgext/hgsubversion: 'module' object has no attribute 'canonpath' ** Unknown exception encountered with possibly-broken third-party extension hgattic ** which supports versions unknown of Mercurial. ** Please disable hgattic and try your action again. ** If that fixes the bug please report it to the extension author. ** Python 2.7.5 (default, Mar 9 2014, 22:15:05) [GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] ** Mercurial Distributed SCM (version 3.2.3) ** Extensions loaded: purge, transplant, fetch, extdiff, rebase, strip, mq, hgattic, hgflow, gpg, sourcetree_auth, progress, sourcetree_checklink Traceback (most recent call last): File "/Applications/SourceTree.app/Contents/Resources/mercurial_local/hg_local", line 35, in <module> mercurial.dispatch.run() File "/Applications/SourceTree.app/Contents/Resources/mercurial_local/mercurial/dispatch.py", line 28, in run sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255) File "/Applications/SourceTree.app/Contents/Resources/mercurial_local/mercurial/dispatch.py", line 71, in dispatch ret = _runcatch(req) File "/Applications/SourceTree.app/Contents/Resources/mercurial_local/mercurial/dispatch.py", line 140, in _runcatch return _dispatch(req) File "/Applications/SourceTree.app/Contents/Resources/mercurial_local/mercurial/dispatch.py", line 817, in _dispatch repo = hg.repository(ui, path=path) File "/Applications/SourceTree.app/Contents/Resources/mercurial_local/mercurial/hg.py", line 128, in repository peer = _peerorrepo(ui, path, create) File "/Applications/SourceTree.app/Contents/Resources/mercurial_local/mercurial/hg.py", line 115, in _peerorrepo obj = _peerlookup(path).instance(ui, path, create) File "/Applications/SourceTree.app/Contents/Resources/mercurial_local/mercurial/hg.py", line 89, in _peerlookup return thing(path) File "/Applications/SourceTree.app/Contents/Resources/mercurial_local/hgext/hgsubversion/__init__.py", line 185, in _lookup if util.islocalrepo(url): AttributeError: 'NoneType' object has no attribute 'islocalrepo'
Looks a lot like
There's an update to blog post on release of 2.0.4 with details of the fix.
Un-checking the hgsubversion option worked for me. 2.0.4 now working!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
did not work for me. i can not even reach that option since it is out of screen, the mercurial error that display has no scroll option so the window become too large to reach.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the work-around in the update to the blog post. :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have the same issue as Yosi had. Our project is stuck. Right when I need to download all the code to work. How can I fix this? The bitbucket is stuck with a window taller then the screen and no option to close it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In case you have my issue and can not see the "OK" button at the bottom, you might need to change resolution (system preferences -> Displays -> Display Tab: "Scaled" resolution radio button : change it until you can see the button.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Guy , software should have a scrollable view so it will not have this effect , but I guess they did not check if instead of version string there is a stack trace of crash. I can see that when i switch to system mercurial every thing is working ok with version 3.2.1 in the crash trace it specify that it can not work with python 2.6.9 because it was compiled with 2.7.5. python 2.6.9 is the default apple version while I have 2.7.8 installed for me , Sourcetree does not run with settings so it access the apple old version. How do I set my python 2.7.8 as the default for system wide apps ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
google is my friend :) found the solution : in terminal write : defaults write com.apple.versioner.python Version 2.7 then embedded works
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I was referring to a Mac version of sourcetree. Once I addressed the resolution not being enough to see closing button, following the uncheck hgsubversion fix did the trick for me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Un-checking the hgsubversion option worked for me as well.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
same here and what is even better: the error window is to large that it is not possible to get to the ok/close/whatever button.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thought it was just me, got this as soon as I upgraded to 2.0.4. Will be downgrading for now.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Same here... downgrade to 2.0.3
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Same here. Will try a downgrade to 2.0.3
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just to make this gain more momentum: same here, independently of whether internal or external (3.2.3+20141218) hg install is used. Command line client works fine. No issue with repos.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Atlassian, I appreciate your effort to quickly solve the security issue, yet I don't think making the app unusable is a proper solution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For those who look for the old version: http://downloads.atlassian.com/software/sourcetree/SourceTree_2.0.3.dmg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also found a temp fix by downgrading to 2.0.2 using embedded mercurial 2.2.2
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Had the same issue with Sourcetree 2.0.3 using external mercurial 3.2.3 install No improvements since with 2.0.4, using either embedded or external mercurial install
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Same thing on 2.0.4
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm getting the same error - just updated to 2.0.4 - the git repos work OK, the mercurial ones re banjaxed, at least in sourcetree - hg log and hg status from the command line work just fine
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Same problem here since updating to 2.0.4
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.