Maven
  1. Maven
  2. MNG-4966

Preserve double slashes in the scm connection url - identifies absolute repository paths for mercurial

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0, 3.0.1
    • Fix Version/s: 3.0.2
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Intermediate
    • Testcase included:
      yes
    • Patch Submitted:
      Yes
    • Number of attachments :
      1

      Description

      The mercurial scm (hg) use double slashes after the hostname part of the repository url to identify that a repository path is absolute, as opposed to relative. Maven should not remove such double slashes from the scm connection url.

      The following is an example of a absolute repository path: scm:hg:ssh://localhost//opt/foo. Note the double slash between 'localhost' and 'opt', it is interpreted by hg as the absolute path /opt/foo on the server localhost.

      A relative repository url on the other hand, scm:hg:ssh://localhost/foo, is resolved relative to the user's home directory on the server localhost, f.x /home/user/foo.

      With maven 3.0 and 3.0.1 double slashes are silently removed and it is thus not possible to release a project that use a absolute scm connection url with mercurial.

      The provide patch removes the removal of double slashes from the url normalizer. It also change the test case for the removal code to test that url:s that contain double slashes are preserved instead.

        Issue Links

          Activity

          Hide
          Benjamin Bentmann added a comment -

          Fixed in r1056720.

          Show
          Benjamin Bentmann added a comment - Fixed in r1056720 .

            People

            • Assignee:
              Benjamin Bentmann
              Reporter:
              Fredrik Jonson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: