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

前端 未结 5 1749
终归单人心
终归单人心 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:12

    First thing: don't use TortoiseHg for this. Use the Mercurial installer instead.

    (TortoiseHg tries to be as independent of your Python installation as possible, and for reasons unclear to this Python-newbie, things Don't Work. Something about py2exe.)

    Otherwise, just follow the steps in the HgWebDirStepByStep. I did have to install pywintypes, but YMMV. Lastly, the unzip utility mentioned on that page may do strange things with file permissions: I had to add read permissions to Templates directory and its files/subdirectories.

    As an aside, if you're wondering how to set the style, add this to hgweb.config:

    [web]
    style = foo
    

提交回复
热议问题