passwords encoded in URLs are problematic
Created originally on Bitbucket by Jean-Pierre Bergamin
I just installed the latest thg Version 1.9.2: TortoiseHg version 1.9.2+63-fdbbfe403d45 with Mercurial-1.7.5+4-8f5c865b7b4a, Python-2.6.6, PyQt-4.8.2, Qt-4.7.1
Using a http repo with basic auth fails. The .hg/hgrc file contains: {{{ [paths] default = http://james:mypassword@host/hg/repo }}}
When I open the synchronize dialog and click on "Filter outgoing changesets to specified URL" I get the following error:
{{{ % hg --repository C:\Users\james\Documents\er outgoing http://james:***@host/hg/repo abgebrochen: unsupported URL component: "@host/hg/repo" }}}
Previous versions of TortoiseHg had no problem, using http auth with the same path settings in the hgrc file.
Another issue arises, when I try to store username and password for a http repo with the "Security" dialog.
- Open the synchronize dialog
- Click on "Security"
- Enter a username and password
- Click "Save" -> Nothing is saved yet, so "Save" maybe a misleading naming for this button
- Click the "Save" button next to the "Security" button to actually save the new auth settings
- A dialog pops up to actually save the values, where the password is masked with *
- When saving, the * are actually written into the hgrc file, which is obviously wrong ;-)
- I have a question mark in my password. Older Versions of TortoiseHG haved the question mark url-encoded with %3F in the hgrc file like
{{{ [paths] default = http://james:password_with_%3F@host/hg/repo }}} This may be a problem as well here.