安装和使用 Mercurial Chart 扩展时遇到困难

发布于 2024-12-07 23:36:41 字数 803 浏览 0 评论 0原文

您好,我在安装和使用 Mercurial ChartExtension

当我按照说明安装时

遇到问题

首先你需要安装扩展;在你的 shell 中输入: python ./setup.py 安装 块引用

Install Results

然后我修改了我的 Mercurial.ini 文件,如下所示

[扩展] 图表=/path/to/chart.py 块引用

然后尝试运行 Hg Chart 命令并收到以下错误

Hg Chart Error Message

任何人都可以帮助我让此扩展正常工作。我知道也有 Hg ActivityExtension,但我对此运气不佳 安装 Mercurial Activity 扩展时出现问题

关于我需要遵循的步骤的外行指南将会有很大帮助

Hi I'm having trouble installing and using the Mercurial ChartExtension

When I installed it as per instructions

First you need to install the extension; type this in your shell:
python ./setup.py install
Blockquote

Install Results

I then modified my mercurial.ini file as follows

[extensions]
chart=/path/to/chart.py
Blockquote

Then tried running Hg Chart command and got the following error

Hg Chart Error Message

Can anyone help me get this extension working. I know there's the Hg ActivityExtension as well, but i have not had much luck with that either Problem installing Mercurial Activity extension

A layman's guide to what steps i need to follow would be of immense help

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

不乱于心 2024-12-14 23:36:42

根据变更日志,图表扩展自 2008 年底以来就没有更新过。如果您尝试将其与大约在同一时间发布的 Mercurial 版本一起使用(Mercurial v1.1.2 于 2008 年 12 月 30 日发布),则可能会起作用。

Mercurial 的最新版本现已是 v1.9.2。自 v1.1.2 以来,API 发生了变化(可能相当大)。如果扩展尚未修改以跟上 API 的更改,那么它将以类似于您发现的错误的方式失败。在本例中,walkchangerevs 方法的参数数量已更改。

更新扩展可能是一项艰巨的任务...如果不检查代码就无法知道。您可以尝试联系作者(@Ry4an)并寻求帮助。您也可以尝试自己修改扩展。

Based on the changelog, the Chart extension has not been updated since late 2008. It would probably work if you tried using it with a version of Mercurial released around that same time (Mercurial v1.1.2 was released on Dec. 30, 2008).

The latest version of Mercurial is now v1.9.2. The API has changed (probably quite a bit) since v1.1.2. If the extension has not been modified to keep up with the changes to the API, then it will fail in ways similar to the error you found. In this case, the number of arguments for the walkchangerevs method has changed.

Updating the extension could be a large task...there is no way to know without inspecting the code. You could try to contact the author (@Ry4an) and ask for help. You could also try to modify the extension yourself.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文