安装和使用 Mercurial Chart 扩展时遇到困难
您好,我在安装和使用 Mercurial ChartExtension
当我按照说明安装时
遇到问题首先你需要安装扩展;在你的 shell 中输入: python ./setup.py 安装 块引用
然后我修改了我的 Mercurial.ini 文件,如下所示
[扩展] 图表=/path/to/chart.py 块引用
然后尝试运行 Hg Chart 命令并收到以下错误
任何人都可以帮助我让此扩展正常工作。我知道也有 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
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
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据变更日志,图表扩展自 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.