Authentication information not found under Windows

Steve Borho steve at borho.org
Mon Feb 8 16:34:13 CST 2010


On Mon, Feb 8, 2010 at 4:25 PM, mdemo <element-skateboards at gmx.at> wrote:
>
> Hi again,
>
> I want to save my username and password information in the configuration
> file under .hg/hgrc, that does look like:
>
> [paths]
> default = thedefaultpath
> [extensions]
> hgext.convert=
> hgext.graphlog =
> hgext.mq =
> hgext.purge =
> hgext.rebase =
> mercurial_keyring = path to may mercurial_keyring.py
> [ui]
> username = MyUsername
> [auth]
> googlecodebpse.prefix=myPrefix
> googlecodebpse.username=myUsername
> googlecodebpse.password=myPassword
> googlecodebpse.schemes=https
>
> I've searched a lot in the forums, and try to add Mercural.ini in different
> locations, and isntall the keyring tool, the dedicated solutions for Win32
> command line.
>
> Always when I want to make a hg push, a prompt of username and password
> occurs. The log file says that
>
> - Username is not specified in .hg/hgrc.
> - http authentication required

You need the modified Python keyring libraries that TortoiseHg ships
with in order for the mercurial_keyring extension to store passwords
properly on Windows (none of the file based fallback mechanisms work
with mercurial-keyring).

These libraries came with TortoiseHg 0.9.3, or you may try to install
them yourself from http://bitbucket.org/sborho/python-keyring-lib

--
Steve Borho


More information about the Mercurial mailing list