Maven SCM
  1. Maven SCM
  2. SCM-508

Wrong scm url validation for mercurial provider

    Details

      Description

      According to documentation (http://maven.apache.org/scm/mercurial.html) scm url can be of this form:
      scm:hg:file://C:/dev/project/v3
      but it doesn't work due to a bug in https://svn.apache.org/repos/asf/maven/scm/tags/maven-scm-1.2/maven-scm-providers/maven-scm-provider-hg/src/main/java/org/apache/maven/scm/provider/hg/HgScmProvider.java
      private HgUrlParserResult parseScmUrl( String scmSpecificUrl )
      line 104: if ( !url.startsWith( "file:///" ) && !url.startsWith( "file://localhost/" ) )

      The fix might be the following (like in svn provider)
      line 104: if ( !url.startsWith( "file://" ) && !url.startsWith( "file://localhost/" ) )

        Activity

        Alexander Nemish created issue -
        Laurent Perez made changes -
        Field Original Value New Value
        Attachment SCM-508-maven-scm-provider-hg.patch [ 52243 ]
        Olivier Lamy (*$^¨%`£) made changes -
        Fix Version/s 1.5 [ 16688 ]
        Olivier Lamy (*$^¨%`£) made changes -
        Fix Version/s 1.x [ 13501 ]
        Fix Version/s 1.5 [ 16688 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 12:22:36 UTC 2015 [ 1428236556206 ]
        Mark Thomas made changes -
        Workflow jira [ 12725514 ] Default workflow, editable Closed status [ 12757610 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 01:08:37 UTC 2015 [ 1428282517778 ]
        Mark Thomas made changes -
        Workflow jira [ 12963216 ] Default workflow, editable Closed status [ 13000374 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Alexander Nemish
          • Votes:
            6 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

            • Created:
              Updated:

              Development