Mercurial 1.4.2 released!

Dirkjan Ochtman dirkjan at ochtman.nl
Mon Jan 4 11:21:15 CST 2010


On Mon, Jan 4, 2010 at 17:51, Marcin Kasperski
<Marcin.Kasperski at mekk.waw.pl> wrote:
> Among those I found: "auth: allow specifying auth sections in .hg/hgrc"
>
> As I feel it touches the problem I had to workaround (in keyring
> extension), could somebody elaborate a bit on what was done there?

It's this changeset: http://hg.xavamedia.nl/mercurial/crew/rev/fb45c1e4396f

So, we have per-repo config state. Every repo has the bits that are in
~/.hgrc or /etc/hgrc, but the bits from .hg/hgrc are only carried by
the repo represented by that .hg. If we make some config state for a
remote repo (either ssh or http), we take some of the local config
bits, but obviously not all of it (because that wouldn't make sense).
The above changeset makes it so that we copy any auth bits specified
in the .hg/hgrc to the config state for all remote repos that are
related to this repository (by means of pulling/pushing).

Cheers,

Dirkjan


More information about the Mercurial mailing list