http authorization caching

Alexis S. L. Carvalho alexis at cecm.usp.br
Fri Aug 17 21:59:21 CDT 2007


Thus spake Brad Schick:
> Does mercurial have any way to cache basic http authorization? I'm
> setting up a repo that is private, so even pulls is restricted, and
> we're finding it a hassle to type username and password so often. Even
> just stashing the username and hashed password in a file would be fine.
> 
> I realize ssh has caching with ssh-agent, but we aren't able to create
> multiple ssh accounts on the server.

You can put something like this in your .hgrc:

[paths]
foobar = http://user:passwd@hg.example.com/path/to/repo

and then use "hg pull foobar"

Alexis


More information about the Mercurial mailing list