Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I just had to install a fresh Mercurial instance yesterday, here's updated instructions for 1.7:</p> <ol> <li><a href="https://www.mercurial-scm.org/" rel="nofollow noreferrer">Install Mercurial</a> (these instructions were tested with 1.7)</li> <li><a href="http://www.python.org/download/releases/2.6.6/" rel="nofollow noreferrer">Install Python</a> (for Mercurial 1.7, you must use the x86 version of Python 2.6.6)</li> <li>You will need to download the hgweb.cgi file from the Mercurial source. You can download the source by running: <code>hg clone https://www.mercurial-scm.org/repo/hg/</code></li> <li><p>Create a folder that will be your web application folder. You will need to copy three things into this folder:</p> <ul> <li>The hgweb.cgi file</li> <li>The contents of the Library.zip from your "C:\Program Files\Mercurial" folder</li> <li>The Templates folder from your "C:\Program Files\Mercurial" </li> </ul></li> <li><p>You will need to make sure you have Python set up in IIS.</p> <ul> <li>Enable CGI via the following: Control Panel -> Turn Windows Features On or Off -> Roles -> Web Server (IIS) -> Add Role Services -> Check CGI</li> <li>Create a new Web Site in IIS and make sure the physical path is the folder you created above</li> <li>In the Handler Mappings for the new website, select "Add Script Map". Enter <strong>*.cgi</strong> for the request path, <strong>c:\Python26\python.exe -u "%s"</strong> for the Executable, and <strong>Python</strong> for the Name. </li> </ul></li> <li><p>You will also need to create a file named "hgweb.config" with contents similar to below. The path within the file needs to be the location on your drive where you want to store the Mercurial repositories:</p> <p>[collections]<br> c:\Mercurial\repos = c:\Mercurial\repos</p></li> <li><p>Edit the hgweb.cgi file and change the line where it sets the path to your hgweb.config to something like the following (wherever the hgweb.config file is):</p> <p>config = "C:\Mercurial\hgweb.config"</p></li> <li>Now, open a browser and navigate to <a href="http://localhost/mercurial/hgweb.cgi" rel="nofollow noreferrer">http://localhost/mercurial/hgweb.cgi</a> (or whatever is the appropriate URL path you set up in IIS) and you should see the Mercurial Repositories page.</li> </ol> <p>Also, check out <a href="http://www.jeremyskinner.co.uk/mercurial-on-iis7/" rel="nofollow noreferrer">Jeremy Skinners blog post</a> . It's a little outdated, but has some extra nice steps like setting up URL re-writing for cleaner URL's.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload