Can https authorization work in non interactive mode?
John Rice
John.Rice at Sun.COM
Mon Nov 19 16:56:37 UTC 2007
Dave - it works for me from the command line as well. The problem is
when I try and exec the hg command within a Java program as we do for
the plugin it doesn't work as we are then in non-interactive mode :(
Would be cool if there was some way to do it though, such as a .hgrc
entry as you suggest.
JR
David Frascone wrote:
> hg clone https://user:password@host/path works for me
>
> Though, can I put username / password in a .hgrc somewhere?
>
> -Dave
>
> On Nov 19, 2007 11:37 AM, John Rice < John.Rice at sun.com
> <mailto:John.Rice at sun.com>> wrote:
>
> Hi - we are building a Mercurial plugin for the NetBEans IDE and
> would
> like to support HTTPS for users when Cloning, Push/Pull from a remote
> repository.
>
> Looking at the Hg code this does not seem possible in non
> interactive mode:
>
> /usr/lib/python2.4/vendor-packages/mercurial/httprepo.py
> :
> if not self.ui.interactive:
> raise util.Abort(_('http authorization required'))
>
> Any suggestions or ideas to get around this/ support it?
>
> For now we are just telling folks they can use HTTP or ssh (as
> long as
> they cache the certificate on the client first).
>
> Thanks,
>
> JR
>
> http://wiki.netbeans.info/wiki/view/MercurialVersionControl
> <http://wiki.netbeans.info/wiki/view/MercurialVersionControl>
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com <mailto:Mercurial at selenic.com>
> http://selenic.com/mailman/listinfo/mercurial
>
>
>
>
> --
> David Frascone
>
> Oxymoron: Safe Sex.
More information about the Mercurial
mailing list