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

mercurial generates illegal directory name on Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • mercurial-plugin
    • Windows 2003 R2
      Java 6.0.30
      Jenkins 1.242.2 LTS
      Mercurial plugin 1.38

      My local mercurial server runs on port 8000 and the plugin tries to use ":8000" in the filename. But : is an illegal character in a filename on Windows.

      Started by user anonymous
      [workspace] $ "C:\Program Files\Mercurial\hg.exe" showconfig paths.default
      $ "C:\Program Files\Mercurial\hg.exe" clone --noupdate http://ronaldradial:8000/ C:\java\hudson\hgcache\DA7E6A4632009859A61A551999EE2109EBB69267-ronaldradial:8000
      abort: The directory name is invalid: C:\java\hudson\hgcache\DA7E6A4632009859A61A551999EE2109EBB69267-ronaldradial:8000
      ERROR: Failed to clone http://ronaldradial:8000/
      ERROR: Failed to use repository cache for http://ronaldradial:8000/
      [workspace] $ "C:\Program Files\Mercurial\hg.exe" pull --rev default
      [workspace] $ "C:\Program Files\Mercurial\hg.exe" update --clean --rev default
      2 files updated, 0 files merged, 0 files removed, 0 files unresolved
      [workspace] $ "C:\Program Files\Mercurial\hg.exe" --config extensions.purge= clean --all
      [workspace] $ "C:\Program Files\Mercurial\hg.exe" log --rev . --template

      {node}
      [workspace] $ "C:\Program Files\Mercurial\hg.exe" log --rev bdd41ba264aa37472c5bf4be6bcb9e46be3c7633
      [workspace] $ "C:\Program Files\Mercurial\hg.exe" log --template "<changeset node='{node}

      ' author='

      {author|xmlescape}

      ' rev='

      {rev}

      ' date='

      {date}

      '><msg>

      {desc|xmlescape}

      </msg><added>

      {file_adds|stringify|xmlescape}

      </added><deleted>

      {file_dels|stringify|xmlescape}

      </deleted><files>

      {files|stringify|xmlescape}

      </files><parents>

      {parents}

      </parents></changeset>\n" --rev default:0 --follow --prune bdd41ba264aa37472c5bf4be6bcb9e46be3c7633
      [workspace] $ cmd /c call C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\hudson3374063823382421936.bat

            kohsuke Kohsuke Kawaguchi
            javakoe Ronald Klop
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: