任何人都可以获得 MacPorts Mercurial 包可以与 MercurialEclipse 插件一起使用吗?
我正在尝试让 Mercurial Eclipse 插件使用我的 MacPorts 版本的 Mercurial(因为我需要访问使用新 dotencode 格式的存储库),但我无法获取“团队”下的 Mercurial 首选项页面来保存变化。它将把“/opt/local/bin”识别为“hg”可执行文件的有效目录,但是当退出工作区时,更改似乎没有正确保存,因为下次我启动 Eclipse 时,旧的“/ usr/local/bin”又回到那里了。
还有其他人遇到过这个问题吗? “/opt/local/bin/hg”是我系统上“/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/hg”的符号链接,但该文件还包含一个 shebang (“# !”)具有相同的路径(废话!)。已知这会对其他人的机器造成任何问题吗?
编辑:将 /usr/local/bin/hg
符号链接到 /opt/local/bin/hg
可以工作,但这并不能解决问题的原因。 Eclipse 错误日志视图中没有记录任何错误,除了“abort:不支持要求‘dotencode’!”之外。启动时。即验证设置或保存工作空间时没有错误。
I'm trying to get the Mercurial Eclipse plugin to use my MacPorts version of Mercurial (since I need to access a repo that's using the new dotencode format), but I can't get the Mercurial preference page under "Team" to save the changes. It will recognize "/opt/local/bin" as a valid directory for the "hg" executable, but when exiting the workspace the changes don't appear to be saved properly, since the next time I launch Eclipse, the old "/usr/local/bin" is back there again.
Has anyone else had problems with this? "/opt/local/bin/hg" is a symlink to "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/hg" on my system, but that file also contains a shebang ("#!") with the same path (duh!). Is that known to cause any problems on anyone else's machine?
Edit: Symlinking /usr/local/bin/hg
to /opt/local/bin/hg
works, but this doesn't fix the cause of the problem.
There are no errors being logged in the Eclipse Error Log view, other than "abort: requirement 'dotencode' not supported!" on startup. I.e. no errors on validating the settings or when saving the workspace.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您在
/usr/local/bin
中有另一个版本的hg
吗?如果没有或者您不再需要它,您可以通过创建符号链接来解决该问题:Do you have another version of
hg
in/usr/local/bin
? If not or if you no longer need it, you might be able to work around the issue by making a symlink: