create hgrc file for all paths on a machine
Posted
by noam
on Stack Overflow
See other posts from Stack Overflow
or by noam
Published on 2010-06-15T12:29:24Z
Indexed on
2010/06/15
12:32 UTC
Read the original article
Hit count: 227
I want to create a hgrc file to set the username and password for all paths on some machine, e.g no matter in which directory I am in, hg clone some_path
will always work without prompting for a username and a password (this is for an auto-deploy script).
I followed the instructions and created a file: /etc/mercurial/hgrc.d/deploy.rc
it's contents:
[auth]
default.prefix= http://myrepo
default.username = myuname
default.password = pwd
But when I do
hg clone some_path
I get abort: error: Connection refused
.
What Am i doing wrong?
© Stack Overflow or respective owner