Get a 404 Error when clone, pull mercurial repository

北慕城南 提交于 2019-12-05 11:16:21

OK I have found out the problem.

comment out the following line in /home/my_username/.hgrc

#verbose = True

more detail here

This may sound obvious but have you tried uncommenting the #allowpull = true line in your hgweb.config file?

Question: are you running a hgweb.cgi and aliasing it via your web server?

If so http://url/hello might actually be pointing to http://url/hgweb.cgi/hello and that might be the path its looking for. Typically you have a cgi script serving the mercurial web interface.

  1. upgrade mercurial to lates version

  2. try to replace [paths] section to

    [collections]
    / = /home/repos
    
    [web]
    baseurl =
    
  3. update hgrc for all your repos

    [web]
    allow_read = YOUR_USER1, YOUR_USER2
    allow_push = YOUR_USER1
    push_ssl = false
    

This can also happen when you are hosting hgweb in IIS and a pull request exceeds the maximum query string length on the server. The default of 2048 bytes can be increased by configuring the system.webServer/security/requestFilters/requestLimits config section.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!