Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • thg thg
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 829
    • Issues 829
    • List
    • Boards
    • Service Desk
    • Milestones
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • mercurial
  • TortoiseHg
  • thgthg
  • Issues
  • #117
Closed
Open
Created Feb 08, 2011 by Bitbucket Importer@bitbucket_importerOwner

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.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking