TortoiseHg web server configuration has an "Allow Push" parameter where I put the users allowed to push changes. But when I try to push I get an "authorization failed" error. How are the users authenticated? Where do the passwords come from?
Setting allow_push = *
will allow anybody to push to your repository served with hg serve
. You should of course only do that on a trusted network. Apart from that, you cannot do authentication with hg serve
-- you need a webserver in front of it that will authenticate users.
Please see hgrc for a terse explanation of allow_push
and the wiki for a slightly longer explanation about what hg serve
is for.
I'm just getting into Mercurial, and from what I can tell (and read in the documentation), the TortoiseHg web server isn't meant to be a permanent solution. The docs seem to steer you towards running either Apache or lighttpd.
You may also want to check out Vampire Basic's tutorial on running Mercurial on Windows.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With