为什么 hgweb.cgi 没有列出使用 Mercurial 1.7 或 1.8 创建的存储库?
我在 Windows 2003 服务器(IIS 6、Python 2.6.6)上运行 hgweb.cgi,并且一直没有出现任何问题,直到我最近从 Mercurial 1.6 升级到 1.7 和 1.8(客户端和中央服务器)。我在服务器上有一个目录,其中包含所有中央存储库,并且该目录在 hgweb.config 文件中设置为“集合”。即使在服务器上升级到 Mercurial 1.8 后,hgweb.cgi 也只会列出使用 Mercurial 1.6 或更早版本创建的存储库。未列出使用 1.7 或 1.8 创建的任何存储库。尝试直接访问 1.7 或 1.8 存储库会导致显示以下错误消息:
处理您的请求时发生错误:
不支持要求“dotencode”
似乎这个问题与使用mercurial 1.6的hgweb.cgi有关,但是既然我卸载了1.6并在服务器上安装了1.8,这怎么可能呢? python目录中是否有一个库文件也需要替换/升级?我缺少什么?
我使用的是安装 1.8 后创建的 Mercurial webapp
目录中的文件,仅根据需要修改 hgweb.cgi 和 hgweb.config 。
I am running hgweb.cgi on a Windows 2003 server (IIS 6, Python 2.6.6), and have been having no issues until I recently upgraded from mercurial 1.6 to 1.7 and 1.8 (clients and central server). I have a single directory on the server containing all of my central repositories, and this directory is setup as a "collection" in the hgweb.config file. Even after upgrading to mercurial 1.8 on the server, hgweb.cgi will only list repositories that were created with mercurial 1.6 or earlier. Any repositories created with 1.7 or 1.8 are not listed. Attempting to access 1.7 or 1.8 repositories directly results in the following error message being displayed:
An error occurred while processing your request:
requirement 'dotencode' not supported
It seems like this issue is related to hgweb.cgi using mercurial 1.6, but how is this possible since I uninstalled 1.6 and installed 1.8 on the server? Is there a library file somewhere in the python directory that needs to be replaced/upgraded as well? What am I missing?
I am using the files in the mercurial webapp
directory that was created after installing 1.8, only modifying hgweb.cgi and hgweb.config as needed.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它仍然在某个地方运行 1.6。也许您有一个 .dll 附带了 tortoiseHg 或一些您不知道的站点包,但 1.6 就在某个地方,并且正在运行。
It's still running 1.6 from somewhere. Perhaps you have a .dll that came with tortoiseHg or some site-packages you don't know about, but 1.6 is somewhere and that's what's getting run.