Mercurial: Why do I get a 404 error when pushing to a repository whose URL I can hit in a browser?

前端 未结 5 1592
灰色年华
灰色年华 2021-02-05 08:43

I have a Mercurial repository that I can see just fine if I navigate to it in a browser, but when I try to do a push, with my default path set to the same URL that I visit in th

5条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-05 09:06

    Is this similar to this configuration, where hgweb.config need to be configured properly:

    / = /home/my_username/hg/**
    

    (with the two stars at then end)

    Or is it a http vs. https issue?

    For https, you need a correct .hgrc file, otherwise you can also get the 404 error.
    See the .hg/hgrc file man page.

    [ui]
    
    username = my.address@myco.com
    
    password = mypassword
    
    schemes = https
    
    [paths]
    
    default = https://myURL.kilnhg.com/Repo/Repositories/Groups/myrepo
    

提交回复
热议问题