views:

25

answers:

1

At home, this works perfectly. I'm on another computer now (using cygwin) and hg push will not prompt for a username / password:

user@localhost /cygdrive/d/repos/upthescala/viewprotect
$ hg push https://viewprotect.googlecode.com/hg/
pushing to https://viewprotect.googlecode.com/hg/
searching for changes
abort: http authorization required

Here are the contents of my ~/.hgrc:

[http_proxy]
host=someproxy:8080

[ui]
username = My Name <myemail>

Thanks in advance for any advice!

Note: this seems to be a cygwin problem. When I try from the Windows prompt (cmd.exe), it works as expected:

D:\repos\upthescala\viewprotect>hg push https://viewprotect.googlecode.com/hg/
pushing to https://viewprotect.googlecode.com/hg/
searching for changes
http authorization required
realm: Google Code Mercurial Repository
user: myemailaddress
password: *********

remote: Success.

-- LES

A: 

Since it's HTTP you can always put the username and password right in the URL. That works on any website using http auth and in any browser.

hg push https://myemailaddress:*********@viewprotect.googlecode.com/hg/

Alternately, newer Mercurial versions have an auth section you can use.

BTW, that's a terrible password. You should come up with something better than eight stars.

Ry4an
of course, i blocked out the real password! (it's the crazily cryptic password that google generates for you for the source code repository -- i'm not that dense :)
LES2