Thg 4.6 does not ask for username on pull/push
Created originally on Bitbucket by kkarbowiak (Krzysiek Karbowiak)
I think there is a regression in Thg 4.6 regarding pull/push/incoming/outgoing operations and URLs without username prefix.
Steps to reproduce:
- Create a local repository
- Do a commit
- Create a hosted repository, e.g. a private one on Bitbucket
- Add the hosted repository in Synchronize, note the "Remove authentication data from URL" checkbox is checked by default and it removes the user name
At the last step Thg asks for password but not username, and the operation ends with error. Below is the log:
test% % hg push https://bitbucket.org/kkarbowiak/test pushing to https://bitbucket.org/kkarbowiak/test http authorization required for https://bitbucket.org/kkarbowiak/test realm: Bitbucket.org HTTP user: HTTP Error: 403 (Max Invalid Password Attempts) [command returned code 255 Fri Jun 15 14:14:01 2018]
Previous versions of Thg asked for both username and password in such cases.
Adding username to the URL in Synchronize fixes the problem.