hg password not set correctly when contained in the url

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major
    • Component/s: mercurial-plugin
    • None

      I've configured my build job to poll from a hg repository and build when it detected changes.

      This failed because the authorization was not working correctly.

      To reproduce:

      For us the problem was that although the mercurial url contained username and password, the password did not get retained in the url in the .hg/hgrc config.

      i.e. it would read

      1. cat .hg/hgrc
        [paths]
        default = http://user@host/path/to/hg/

      instead of

      1. cat .hg/hgrc
        [paths]
        default = http://user:password@host/path/to/hg/

            Assignee:
            Jesse Glick
            Reporter:
            Martin Häcker
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: