Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

hg push with credentials for HTTP server

I have a HTTP server with some Mercurial repositories; in which I handle digest authentication, and I found myself pushing changes to the server too often, so, I wanna know If is there any way to send the credentials (user and password) along with the hg push command?

Thanks

like image 864
Jhonny D. Cano -Leftware- Avatar asked Nov 27 '22 15:11

Jhonny D. Cano -Leftware-


2 Answers

Please use the auth section in your hgrc file. That will let you write things like:

[auth]
bb.prefix = https://bitbucket.org/
bb.username = mg
bb.password = something
like image 59
Martin Geisler Avatar answered Dec 04 '22 06:12

Martin Geisler


With http authentication, I use hg push https://user:[email protected] in hgrc file, not sure if it helps here.

like image 24
Sejanus Avatar answered Dec 04 '22 06:12

Sejanus