The next thing to do is get a hold of hgweb.cgi, which isn't included in any of the Mercurial installations that were just performed as far as I can tell. ![]() To test this works, create a simple Python script and save it in the application directory as test.cgi. Enter *.cgi for the request path, C:\Python26\python.exe -u "%s" for the executable, and Python for the name. Next, go into Handler Mappings and add a Script Map for CGI. The physical location is C:\inetpub\wwwroot\hg. If you need more details, Jeremy's effort may have them.Ĭreate an application under the default web site and call it whatever you like, I called it hg like Jeremy did. This part of the process is very similar to Jeremy's guide, so I will go over this quickly. This will look for Python and install itself in the C:\Python26\Lib\site-packages directory. Once that is complete, install the Mercurial Python package. It's pretty straight forward and it will end up in a directory like C:\Python26 by default. (Ignore the other items have checked, they're for other applications.) Make sure CGI and Basic Authentication are installed. If your Windows Server doesn't already have IIS 7.5 installed, go ahead and do that now using Server Manager. It can be handy to init new repos with it, but that can be accomplished using your local machine and a network share. I installed it so I can browse my repositories with it while I'm logged into the server, but if you hardly ever RDP into your server you won't need it. TortoiseHg is completely optional on your server. If you're feeling brave you might want to give it a go. Things may work with the 64 bit versions, but it wasn't something I was willing to fiddle with. I also grabbed the 32 bit version of Python and Mercurial just to get this working as soon as possible. Mercurial as a Python package means Python can find it easily. I'm installing Mercurial the Python package, not Mercurial the stand-alone program. However, I think as long as the major and minor version numbers match, everything should be fine. This version of Mercurial uses Python 2.6.4, but I could only find Python 2.6.6. To find out which version of Python Mercurial needs, install TortoiseHg either on the server or the client (or both) and have a look at the About TortoiseHg screen. Mercurial is based on Python, and it seems to matter which version of Python is installed. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |