On Tue, Aug 11, 2009 at 10:52 AM, Russ Cox<r...@swtch.com> wrote: > On Tue, Aug 11, 2009 at 9:37 AM, John Floren<slawmas...@gmail.com> wrote: >> Hi >> >> So I'm trying to clone a private repository I just created on >> bitbucket. This is what I see: >> >> jerq% hg clone https://<username>@bitbucket.org/<username>/<repo>/ >> destination directory: <repo> >> http authorization required >> realm: Bitbucket.org HTTP >> user: <username> >> abort: could not import module msvcrt! > > Surely there is a version of https support > that doesn't involve msvcrt? That's a > Windows DLL. >
I have hacked up python's getpass.py to do password-prompting for Plan 9, so I can now do https authentication. I'll send the modified getpass.py to 9fans after I've made sure it works ok. My Python-fu is not great, so right now it just always assumes you're using Plan 9 (bad). >> If I try with ssh instead: >> jerq% hg -v clone ssh://h...@bitbucket.org/<username>/<repo>/ >> running ssh h...@bitbucket.org "hg -R <username>/<repo>/ serve --stdio" >> abort: no suitable response from remote hg! > > Presumably this is because ssh is sshv1 > but bitbucket requires sshv2. > I did 'bind /bin/openssh/ssh /bin/ssh' before running this hg command, but to no avail. I do have my public keys uploaded, so there shouldn't be a problem there... however now that https works I don't necessarily need the ssh support. John -- "Object-oriented design is the roman numerals of computing" -- Rob Pike