views:

59

answers:

1

I created private repository on bitbucket.org. I want to use it from IntelliJ IDEA.

I choose "Check out from Version Control" and there is message box with field Mercurial Repository URL and Test Repository button.
What should I enter into Mercurial Repository URL?

I tried

  • http://bitbucket.org/my_user_name/my_repo_name,
  • https://, and https://[email protected]/my_user_name/my_repo_name.

Nothing works.
When I click Test Repository I always get the message "Repository test has failed.".
I assume it is because there is no field for username and password, but can't I enter this data somehow?

A: 

Since only the latest hg4idea version supports authentication, you could try, for accessing and cloning your Bitbucket repo:

hg clone http://myuser:[email protected]/MY_USER/MY_REPO

(that is, if your Bitbucket repo is a private one, which you did mention in your question:
'myuser' and 'mypassword' would then be the login and password for your Bitbucket account, using basic access authentication for the http url)

VonC
I tried that, but without succcess :(
amorfis
@amorfis: Can you try through `https` (without user or password, since it would only need to find your public key)? (provided you have your public key in `~/.ssh/id_ras.pub`)
VonC
@amorfis: never mind: http://bitbucket.org/viacoban/hg4idea/issue/34/support-for-authentication-on-push-pull "doesn't support ssh authentication based on keys"
VonC