Mercurial plugin doesn't seem to support private repositories

I've just tried using the Mercurial plugin on the latest 10181 Team City 5.0 build.  When trying to test the connection to a private repository I receive the following message:

'hg identify **path**' command failed.
stderr: abort: http authorization required

I have put in the correct authorization settings but these don't seem to be used?

Thanks.

0
9 comments

Please describe your repository setup in more details. To check access to repository TC plugin uses 'hg identify' command. How this command should be started in your case? Besides "test connection" function does TC detect changes for your repository?

0
Avatar
Permanently deleted user

Thanks for the quick reply!!

I have a small private repository hosted at bitbucket.  When I use hg identify from the command line it prompts me to enter a username/password in order to connect.  This is the same for getting latest/cloning as well.  AFAIK all connections to my repository needs to authenticate.

0

Is it possible to connect to this repository by providing login/password in the url?

0
Avatar
Permanently deleted user

I don't think so. I've only just started using Mercurial so I'm not an expert but I've had a look on their site and can't see anything

0

Does the following command work for you:
hg identify http://user:password@host/
?

0
Avatar
Permanently deleted user

Yeah that seems to work great!

0
Avatar
Permanently deleted user

Yep that seems to work, thank you!  The only thing that I noticed is that when you do a test connection the password is visible as cleartext in the window that pops up.  At other places on the Team City website it seems to be obfuscated ok.

Cheers,
Martin

0

I fixed displaying of the password in the test connection popup, please use this build: http://teamcity.jetbrains.com/viewLog.html?buildId=22795&buildTypeId=bt121&tab=artifacts
Thank you for your feedback!

0

Please sign in to leave a comment.