Specify credentials in hg command line

Hi,
How can i specify user/pass when calling hg from command line?
I currently can’t find a way around it stating "http authorization required " and then prompting for user/pass input. How can i specify credentials in config or even within the command line call?
I’ve tried a few things but nothing has worked, such as this method:
hg --config auth.rc.username=user --config auth.rc.password=pass pull

Thanks,

Hi @jsgro ,

you can take a look here: https://www.selenic.com/mercurial/hgrc.5.html#auth

It looks like you have to put rc.prefix and rc.schemes, too, so that hg knows which credentials are to be used. Hope this works for you!

Have a nice day!

1 Like

ah, thanks. got it working.
the schemes is the piece we were missing.

1 Like