Hi,
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?
Hi,
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.
I believe you can just edit your hgrc file, under the [authorize] section: http://stackoverflow.com/questions/1997601/store-password-in-tortoisehg/1998637