passing username and password in non-interactive mode
Benoit Boissinot
bboissin at gmail.com
Fri Nov 28 08:05:29 CST 2008
On Mon, Nov 24, 2008 at 10:08 PM, Bastian Doetsch
<bastian.doetsch at gmx.de> wrote:
> Another possibility is a python wrapper which imports the appropriate
> mercurial modules, but replaces the functionality that writes
> .hg/hgrc, of that gets auth info from eclipse in whatever way you enjoy,
> and plugs in as an additional transport mechanism, passing
> auth to the real transport. You still may have trouble if the transport
> itself doesn't accept command line auth, and is checking isatty()
> itself. NOTE: I am, to some extent, talking through my hat here, since
> I haven't looked inside mercurial at all - I just know that
> it's usually easy to customize python programs, and there's already some
> mechanism to all the use of several protocols, thus maybe
> a plug in point.
>
A possibility is to get the url from hgrc (or `hg paths`), add the user/password
and call with the full url (with authinfo). It is as safe as adding a
--user/--password
argument.
regard,
Benoit
More information about the Mercurial
mailing list