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.
Please sign in to leave a comment.
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?
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.
Is it possible to connect to this repository by providing login/password in the url?
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
Does the following command work for you:
hg identify http://user:password@host/
?
Yeah that seems to work great!
Please try to install this build: http://teamcity.jetbrains.com/viewLog.html?buildId=22773&buildTypeId=bt121&tab=artifacts
It should solve your problem.
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
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!