How do I get Mercurial's hgwebdir working on Windows?

前端 未结 5 1718
终归单人心
终归单人心 2021-01-02 09:20

These are the steps I took:

  • install apache 2.2.x
  • install TortoiseHg 0.7
  • copy hgwebdir.cgi, hgweb.config to cgi-bin
  • edit hgweb.config
5条回答
  •  囚心锁ツ
    2021-01-02 10:05

    I know this question is already answered, but I experienced a slightly different issue and found a work around --

    I'm sure I'm missing something obvious in the Python configuration (2.5.4), but I'm having issues with .pyd versus .dll. (I had the same issues with the Python subversion libraries.) I see osutil.pyd in Mercurial\library.zip, but it fails to load it. Therefore, I unzipped library.zip and then copied *.pyd to *.dll, e.g:

    REM Ugly DOS... Recursively renames all .pyd files to .dll
    for /f "tokens=*" %%a in ('dir /s /b *.pyd') do copy "%%a" "%%~da%%~pa%%~na.dll"
    

    Make sure the unzipped library directory is in the PYTHONPATH, but after this I successfully can execute: from mercurial import osutil. Also remember to copy or move the Templates directory to the newly unzipped library directory.

    Follow the steps in Section 5 of the HgWebDirStepByStep for the rest. I did not experience the "Gotchas" in Section 5.3 though.

提交回复
热议问题