任何人都可以获得 MacPorts Mercurial 包可以与 MercurialEclipse 插件一起使用吗?

发布于 2024-10-24 18:40:27 字数 583 浏览 1 评论 0原文

我正在尝试让 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

各自安好 2024-10-31 18:40:27

您在 /usr/local/bin 中有另一个版本的 hg 吗?如果没有或者您不再需要它,您可以通过创建符号链接来解决该问题:

sudo ln -s /opt/local/bin/hg /usr/local/bin/hg
sudo chmod -h g+rx,o+rx /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:

sudo ln -s /opt/local/bin/hg /usr/local/bin/hg
sudo chmod -h g+rx,o+rx /usr/local/bin/hg
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文