passing username and password in non-interactive mode

Bastian Doetsch bastian.doetsch at gmx.de
Mon Nov 24 18:09:38 UTC 2008


Hi,

how can I pass username and password on to hg for pull, push, clone,
sign and possibly other commands withouth leaking it? 

- If I use authentication in the URI on initial clone, it is put into
the hgrc file of the repository.
- If I try not to provide it when calling hg from Java, Hg puts itself
automatically in non-interactive mode and I can't authenticate
interactively from Java.

Is there any other way? If not, how about introducing --user and
--password options to all remote commands (and sign)?

Thanks in advance for your help,
Bastian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20081124/114eda8a/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20081124/114eda8a/attachment-0001.asc>


More information about the Mercurial mailing list