Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3663896
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T01:34:57+00:00 2026-05-19T01:34:57+00:00

I am having an infuriating experience with IIS7, Python 2.6, Mercurial 1.7.2, and hgweb.cgi.

  • 0

I am having an infuriating experience with IIS7, Python 2.6, Mercurial 1.7.2, and hgweb.cgi.

After battling for an afternoon getting hgweb.cgi to work, I finally got it to render in the browser using hgweb.cgi and IIS7. I can now see a blank rendering of the web server, that is, a header with no repositories listed.

Now, according to the multipe sites I’ve read after scouring through Google results, I know that I have to update my hgweb.config file to point to some repositories.

However, for the life of me, I can’t get it to list my repository using either the [paths] or [collections] entries.

I have the following directory structure, (simplified but illustrative…):

c:\code
c:\code\htmlwriter
c:\code\CommandLineProjects\Clean

The latter two directories have mercurial repositories in them.

I am trying to publish the repository in c:\code\htmlwriter

Now, if I make this entry in hgweb.config

[paths]
htmlwriter = c:\code\htmlwriter

I get nothing listed in my output.

If I put

[paths]
htmlwriter = c:\code\*

I get something, but not what I want, i.e. this:

htmlwriter/CommandLineProjects/Clean

(Note that the about drills down one directory level farther than I want it to).

I can’t seem to find any combination of paths, asterisks, or anything else that will serve up the repository in c:\code\htmlwriter. It appears to always want to go one level deeper than I want it to, or to show nothing.

I know that my hgweb.config file is being read because I can change the style tag in it and it changes what is rendered.

I have read and re-read multiple time a number of resources on the web, but they all say what I’m trying should be working. For instance, I followed this instructions to the letter with no good results:

http://www.jeremyskinner.co.uk/mercurial-on-iis7/

Anyone have any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T01:34:57+00:00Added an answer on May 19, 2026 at 1:34 am

    I’ll answer my own question:

    The solution is that the path listed in the [paths] section is relative to the directory where the hgweb.config file is residing.

    So, if you have your repository in:

    c:\code\myrepo
    

    and your hgweb.config file is in:

    C:\inetpub\hgcgi
    

    then the entry in your hgweb.config file needs to be:

    /myrepo = ../../code/myrepo
    

    That was the trick — to put the correct relative path.

    I was never able to get hgweb.cgi to work with a repo on a different drive.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having a problem getting a TreeView control to display node images. The code below
Since I have upgraded from VS2008 to VS2010, I've been having an increasingly infuriating
Having spent a bunch of time recently doing 2D work that involves pixel manipulation
After having read Ian Boyd 's constructor series questions ( 1 , 2 ,
Having been a PHP developer on LAMP servers for quite a while, is there
Having a heckuva time with this one, though I feel I'm missing something obvious.
Having worked with Classic ASP for about 2 years now by creating a few
Having read the threads Is SqlCommand.Dispose enough? and Closing and Disposing a WCF Service
Having to upgrade a database schema makes installing a new release of software a
Having programmed through emacs and vi for years and years at this point, I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.