Confirmed: htaccess method of http auth broken in 1.0.2
Peter Hosey
boredzo at gmail.com
Mon Sep 8 10:48:09 CDT 2008
On Sep 07, 2008, at 22:13:36, Patrick Waugh wrote:
> On Sun, Aug 17, 2008 at 1:20 PM, Henryk Gerlach <hgerlach at gmx.de>
> wrote:
>> then try to push with
>> allow_push=patrick
>> in .hgrc on server
>>
>> does it work?
>
> Question: Is the file named (as you said) .hgrc, or just hgrc??
There are four hgrc files:
$repository/.hg/hgrc
$HOME/.hgrc
$PREFIX/etc/mercurial/hgrc (e.g., if you install to /opt, then this
would be /opt/etc/mercurial/hgrc)
/etc/mercurial/hgrc
Note that only $HOME/.hgrc has the . prefix on the hgrc filename. All
others are named hgrc, without the . prefix.
There are also two hgrc.d directories: one in $PREFIX/etc/mercurial,
and the other in /etc/mercurial.
Source: http://www.selenic.com/mercurial/hgrc.5.html.
> Also, this file is the one located in the actual repos correct?
$repository/.hg/hgrc is the one located in the actual repo. Others,
including .hgrc, are located elsewhere.
It doesn't much matter where you put the allow_push setting, as long
as it's not overridden by another .hgrc (e.g., allow_push=patrick
in ~/.hgrc overridden by allow_push= in repo/.hg/hgrc).
>> <LimitExcept GET POST>
>> require valid-user
>> </LimitExcept>
>
> wouldn't that be equivilent to:
>
>> <Limit PUT>
>> require valid-user
>> </Limit>
No. PUT is another method name. It's not some sort of abbreviation.
More information about the Mercurial
mailing list