I'm trying to create a local Mercurial repository and get the following error after clicking 'Create':
hg init -y /Users/digitaluser1/Sites/base/content Traceback (most recent call last): File "/Applications/SourceTree.app/Contents/Resources/mercurial_local/hg_local", line 33, in <module> mercurial.util.setbinary(fp) File "/Applications/SourceTree.app/Contents/Resources/mercurial_local/mercurial/demandimport.py", line 106, in __getattribute__ self._load() File "/Applications/SourceTree.app/Contents/Resources/mercurial_local/mercurial/demandimport.py", line 78, in _load mod = _hgextimport(_import, head, globals, locals, None, level) File "/Applications/SourceTree.app/Contents/Resources/mercurial_local/mercurial/demandimport.py", line 47, in _hgextimport return importfunc(name, globals, *args) File "/Applications/SourceTree.app/Contents/Resources/mercurial_local/mercurial/util.py", line 69, in <module> statfiles = getattr(osutil, 'statfiles', platform.statfiles) File "/Applications/SourceTree.app/Contents/Resources/mercurial_local/mercurial/demandimport.py", line 106, in __getattribute__ self._load() File "/Applications/SourceTree.app/Contents/Resources/mercurial_local/mercurial/demandimport.py", line 78, in _load mod = _hgextimport(_import, head, globals, locals, None, level) File "/Applications/SourceTree.app/Contents/Resources/mercurial_local/mercurial/demandimport.py", line 47, in _hgextimport return importfunc(name, globals, *args) ImportError: dlopen(/Applications/SourceTree.app/Contents/Resources/mercurial_local/mercurial/osutil.so, 2): Library not loaded: /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics Referenced from: /Applications/SourceTree.app/Contents/Resources/mercurial_local/mercurial/osutil.so Reason: image not found Completed with errors, see above
I've got SourceTree 2.0.5.2 and OS X 10.7.5
I figured it out. Even though SourceTree 2.0.5.2 is compatible with OS X 10.7.5, the embedded version of Mercurial is NOT. This seems like a mistake on SourceTree's part, they should offer a different download for 10.7 people that includes an older version of Mercurial.
Anyway, to fix this, I installed Mercurial 3.2.1 (https://mercurial.selenic.com/downloads) and in SourceTree preferences I told it to use that version of Mercurial instead of the embedded one.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.