Hg push with credentials for HTTP server

I have an HTTP server with some Mercurial repositories; in which I handle digest authentication, and I found that I change the changes too often on the server, so I want to know if there is a way to send the credentials (user and password) along with the hg push command?

thanks

+4
source share
4 answers

With http authentication, I use hg push https: // user: password@url.com in the hgrc file, not sure if it helps here.

+6
source

Please use the auth section in your hgrc file. This will allow you to write things like:

 [auth] bb.prefix = https://bitbucket.org/ bb.username = mg bb.password = something 
+19
source

To automatically provide credentials, there is a default password extension . There are not many advantages for this, except that embedding loans directly in the URL, as Sejanus offers. It still remains open, but enters your password into a separate file, the location of which you can control. Without this, the password is stored in the .hg folder in the workspace, so it may be preferable if the file system on which your workspace is running is shared.

0
source

TortoiseHg 0.9.3 is the first version to include the mercurial_keyring extension, and I'm quite happy with that. The previous link shows the required configuration in order to make it work.

Mercurial 1.4.3 does not include it, but I hope it is just a matter of time before it is available as part of Mercurial packages.

0
source

Source: https://habr.com/ru/post/1301850/


All Articles