[
http://jira.codehaus.org/browse/SCM-508?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=243723#action_243723
]
Laurent Perez commented on SCM-508:
-----------------------------------
Dennis, you are probably right, but http://maven.apache.org/scm/bazaar.html and
http://maven.apache.org/scm/subversion.html are referencing double slashes and
their code is using double slashes too, I don't know why, perhaps it was
assumed that the file:// protocol does not need a third slash on windows
because there is no "root directory", drive letters start without a mount point.
Anyway, feel free to mark this one as wontfix or invalid if needed, I guess
that in practice, most people on windows wanting to use a local repo would
probably use hg serve and hg clone their http://localhost:8000 repository
instead of using a local file: repository.
> Wrong scm url validation for mercurial provider
> -----------------------------------------------
>
> Key: SCM-508
> URL: http://jira.codehaus.org/browse/SCM-508
> Project: Maven SCM
> Issue Type: Bug
> Components: maven-scm-provider-mercurial (hg)
> Reporter: Alexander Nemish
> Fix For: 1.5
>
> Attachments: SCM-508-maven-scm-provider-hg.patch
>
>
> 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/" ) )
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira