Wrong parse of path string from hgrc file

Dmitry Zanozin avatarDmitry Zanozin created an issue

I have path string in repository's hgrc file like:

[paths]
default = http://<user_name>:<password>@<server_name>/<path_to_the_repo>

workbench tries to synchronize with the repo but tries to use "<user_name><password>" string (skipping ":" character) for username and ask me about password every time. It doesn't parse <user_name>:<password> string as needed.

Comments (5)

  1. Dmitry Zanozin

    Yes. hg incoming works fine. If I delete password section in hgrc file eg:

    [paths]
    default = http://<user_name>@<server_name>/<path_to_the_repo>
    
    

    thg works fine too - it asks me about password and then download all incoming changesets correctly. But if I add ":<password>" part into the string thg ignores ":" separator and use the whole strings <user_name><password> as login and ask me for password (obviously it doesn't work with any entered password).

  2. Steve Borho

    fixes pushed, this was a bug in the original sync code

    For what it's worth, we're trying to get users to use the new [auth] section and mercurial_keyring for authentication, since saving passwords in plain-text is not recommended.

  3. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.