Hosting Mercurial with IIS 6
Some more things that I needed to fix:
- Where the various HOWTOs say to use
c:\whatever\Python26\python.exe -u "%s" "%s"
instead usec:\whatever\Python26\python.exe -u -O -B "%s" "%s"
-O causes it to also look for .pyo files (not just .py or .pyc, which at least in my version weren't present). -B causes it to not attempt to compile .py files that it finds into .pyo files (which fails due to lacking write permissions) - I'd installed Python 2.7. Mercurial 1.6.2's .pyo files were compiled with Python 2.6. This resulted in a magic number error. Uninstalling 2.7 and installing 2.6.5 fixed this. (If you're reading this at some point in the future, this point may no longer be relevant - check the name of the DLL in Mercurial's directory, or TortoiseHg's directory, depending on where you took library.zip from)
- hgwebdir.cgi is now just hgweb.cgi - webdir was integrated into it
There's a pretty good post at http://vampirebasic.blogspot.com/2009/06/running-mercurial-on-windows.html that'll get you started, but if you need more detail or to go further than the writer did, I've got a 4 part blog post that covers everything you need to know about getting up and running on IIS, including Active Directory integration, pull/push privileges, customization of the UI:
http://www.endswithsaurus.com/2010/05/setting-up-and-configuring-mercurial-in.html
It's worth a read...