-
Bug
-
Resolution: Answered
-
Highest
-
None
-
2.0.4
-
None
-
None
-
OSX 10.9.4
After updating to version 2.0.4 I get the following when I startup for my Mercurial repo. Everything was fine before update.
--------------------
'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 sourcetree_auth ** which supports versions unknown of Mercurial. ** Please disable sourcetree_auth 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: transplant, fetch, extdiff, rebase, strip, mq, sourcetree_auth, gpg, hgattic, hgflow, 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' '
- mentioned in
-
Page Loading...
Hi Shawn,
There is a workaround for this issue, it's because we addressed a major security issue that existed in older versions of Mercurial and the extensions we use no longer worked with the newer version.
To fix this go into your SourceTree preferences and click on the Mercurial tab. At the bottom of this view there's a scroll area for extensions. Uncheck the 'hgsubversion' option and all should be OK again.
It's possible that the error message may continue appearing, if you see references to 'hgattic' and the likes then disable that option in the Mercurial extensions, too. If the problem continues, feel free to re-open this issue.
Thanks in advance