Linux mercurial 1.9和ssh的问题

Linux mercurial 1.9和ssh的问题,linux,mercurial,Linux,Mercurial,上周末(2011年7月16日),我们的mercurial软件包在ubuntu lucid上使用mercurial stable ppa自动更新为最新的1.9 mercurial二进制文件 现在,通过SSH从存储库中提取不再有效。 将显示以下错误: remote: Traceback (most recent call last): remote: File "/usr/share/mercurial-server/hg-ssh", line 86, in <module> rem

上周末(2011年7月16日),我们的mercurial软件包在ubuntu lucid上使用mercurial stable ppa自动更新为最新的1.9 mercurial二进制文件

现在,通过SSH从存储库中提取不再有效。 将显示以下错误:

remote: Traceback (most recent call last):
remote:   File "/usr/share/mercurial-server/hg-ssh", line 86, in <module>
remote:     dispatch.dispatch(['-R', repo, 'serve', '--stdio'])
remote:   File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 31, in dispatch
remote:     if req.ferr:
remote: AttributeError: 'list' object has no attribute 'ferr'
abort: no suitable response from remote hg!
有人知道如何升级(如果已经有版本)mercurial server软件包吗? 还是我们需要升级其他东西?(新的python脚本?)

如果还没有新版本的必要软件包,如何降级到以前的1.7.5(ubuntu lucid)

我们非常感谢您的帮助,因为我们的开发过程因这一事实而减慢了

谢谢

好的,通过编辑python脚本找到了一个(解决方法)解决方案

编辑脚本/usr/share/mercurial server/hg ssh 在脚本末尾,替换该行:

dispatch.dispatch(['-R', repo, 'serve', '--stdio'])
dispatch.dispatch(dispatch.request(['-R', repo, 'serve', '--stdio']))
dispatch.dispatch(dispatch.request(['init', repo]))
用这句话:

dispatch.dispatch(['-R', repo, 'serve', '--stdio'])
dispatch.dispatch(dispatch.request(['-R', repo, 'serve', '--stdio']))
dispatch.dispatch(dispatch.request(['init', repo]))
还应替换:

dispatch.dispatch(['init', repo])
用这句话:

dispatch.dispatch(['-R', repo, 'serve', '--stdio'])
dispatch.dispatch(dispatch.request(['-R', repo, 'serve', '--stdio']))
dispatch.dispatch(dispatch.request(['init', repo]))
这对我们有用


希望这能为其他人节省4小时的谷歌搜索和python基础知识学习时间S

更新了mercurial server的最新版本,以支持API更改,但是可能需要重新运行
刷新身份验证
脚本,以便升级安装。

如果有人投反对票,了解原因也可能很有意思!?!?Mercurial与发展相关+1即使这个问题应该发布在mercurial邮件列表上,我认为在这里(或在superuser.com上)还是很有帮助的。@Danilo:有可能是因为完全重复的问题而被否决了-发生了什么事?为什么同一个问题贴了两次?你有两个活跃账户吗?你应该杀掉一个。等等,我想那是别人把他们完全无关的问题搞砸了。回滚了他们的更改…@Chris:Urghs。。。真奇怪,我只发了一次问题。。。但我看到在你链接的问题中,我的文本显示。。。(听起来像是stackoverflow bug?)是的,@Danilo Tommasina:如果这对你有什么意义的话,我刚刚遇到了完全相同的问题,你的问题以及你慷慨发布的答案为我节省了很多时间和头痛。谢谢!至于API的变化,如果你看一下,“[请求类]目前只存储参数”,这看起来有点不负责任,你不觉得吗?破坏API的外观变化…好吧,这确实救了我:-)。我在Gentoo用户邮件列表上发布了一个问题,认为这是Gentoo特有的问题,但有人在这里指了指我。谢谢:-)回答得好!谢谢!15分钟,而不是几个小时!