Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-12361

Modules with directory separators don't work on Windows

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Specifying a module such as 'src/main' does not work on windows.

      Internally, the mercurial plugin converts the module paths to have unix '/' separators, but paths returned by 'hg status' have '\' separators, so the String.startsWith(...) test in MercurialSCM.dependentChanges() always returns false.

        Attachments

          Activity

          Hide
          kbell Kevin Bell added a comment -

          Attempt at fix submitted as mercurial-plugin pull request #18:

          https://github.com/jenkinsci/mercurial-plugin/pull/18

          Show
          kbell Kevin Bell added a comment - Attempt at fix submitted as mercurial-plugin pull request #18: https://github.com/jenkinsci/mercurial-plugin/pull/18
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Kevin Bell
          Path:
          src/main/java/hudson/plugins/mercurial/MercurialSCM.java
          src/test/java/hudson/plugins/mercurial/MercurialSCMTest.java
          http://jenkins-ci.org/commit/mercurial-plugin/f53ffd9826cb6d219d9013a2837d658ba4387da7
          Log:
          Fix for JENKINS-12361

          Convert all paths to unix format before comparing prefixes

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kevin Bell Path: src/main/java/hudson/plugins/mercurial/MercurialSCM.java src/test/java/hudson/plugins/mercurial/MercurialSCMTest.java http://jenkins-ci.org/commit/mercurial-plugin/f53ffd9826cb6d219d9013a2837d658ba4387da7 Log: Fix for JENKINS-12361 Convert all paths to unix format before comparing prefixes
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: jglick
          Path:
          src/main/java/hudson/plugins/mercurial/MercurialSCM.java
          src/test/java/hudson/plugins/mercurial/MercurialSCMTest.java
          http://jenkins-ci.org/commit/mercurial-plugin/ab0aa6c46e85a80f8ee3b5a7db6e680ade14fecd
          Log:
          Merge pull request #18 from kmbell/jenkins-12361

          Fix for JENKINS-12361

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: jglick Path: src/main/java/hudson/plugins/mercurial/MercurialSCM.java src/test/java/hudson/plugins/mercurial/MercurialSCMTest.java http://jenkins-ci.org/commit/mercurial-plugin/ab0aa6c46e85a80f8ee3b5a7db6e680ade14fecd Log: Merge pull request #18 from kmbell/jenkins-12361 Fix for JENKINS-12361

            People

            • Assignee:
              kbell Kevin Bell
              Reporter:
              kbell Kevin Bell
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: