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.

9 comments
Comment actions Permalink

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
Comment actions Permalink

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
Comment actions Permalink

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

0
Comment actions Permalink

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
Comment actions Permalink

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

0
Comment actions Permalink

Yeah that seems to work great!

0
Comment actions Permalink

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
Comment actions Permalink

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.