Note that there are some explanatory texts on larger screens.

plurals
  1. POMercurial Server on Apache/Windows
    text
    copied!<p>I'm searching for info to setup a Mercurial Server for Windows (7 or XP) with an Apache (xampp if it is useful to know it) with the Push Model, just like in <a href="https://stackoverflow.com/questions/740075/mercurial-server">this question</a> but my team is composed of 5 to 8 (unsolvent) guys who are each one working in separated places, so I don't think the bitbucket solution or anyother non-private repo out there.</p> <p>I think <a href="http://mercurial.selenic.com/wiki/HgWebDirStepByStep" rel="nofollow noreferrer">this post</a> would do the trick, but i haven't experienced anything with cgi before, </p> <p>Has anybody done this before? where can I find a more detailed explanation? thanks in advance </p> <p>[EDIT]</p> <p>I'm now getting this error: Premature end of script headers: hgwebdir.cgi</p> <p>The log error says "no module named mercurial"</p> <p>this is my hgwebdir.cgi file</p> <pre><code>#!c:/python24/python.exe # # An example CGI script to export multiple hgweb repos, edit as necessary # adjust python path if not a system-wide install: import sys sys.path.insert(0, "c:/mercurial_library") # enable importing on demand to reduce startup time from mercurial import demandimport; demandimport.enable() # Uncomment to send python tracebacks to the browser if an error occurs: #import cgitb #cgitb.enable() # If you'd like to serve pages with UTF-8 instead of your default # locale charset, you can do so by uncommenting the following lines. # Note that this will cause your .hgrc files to be interpreted in # UTF-8 and all your repo files to be displayed using UTF-8. # #import os #os.environ["HGENCODING"] = "UTF-8" from mercurial.hgweb.hgwebdir_mod import hgwebdir import mercurial.hgweb.wsgicgi as wsgicgi application = hgwebdir('hgweb.config') wsgicgi.launch(application) </code></pre>
 

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