Is freehg.org code available?
Ondrej Certik
ondrej at certik.cz
Thu Jul 3 15:25:16 CDT 2008
On Thu, Jul 3, 2008 at 9:57 PM, Ondrej Certik <ondrej at certik.cz> wrote:
> On Thu, Jul 3, 2008 at 8:38 PM, Dirkjan Ochtman <dirkjan at ochtman.nl> wrote:
>> Ondrej Certik <ondrej <at> certik.cz> writes:
>>> Could the answer to all my problems be, that I also need to setup
>>> hgwebdir somehow? And tell apache to redirect shortlog, changelog etc.
>>> to it? And tell it to use templates from the hgtemplates/freehg
>>> directory?
>>
>> Yeah, that would make sense, I guess.
>
> Yes, I made a huge progress, now it almost does what it should, but
> now I am struggling with apache directives. If anyone could post here
> his apache config file, it would spare me a lot of time to figure
> things out.
Here is my current state:
http://www.selenic.com/mercurial/wiki/index.cgi/HowToSetupFreeHg
The setup is unfortunately rather lengthy, but anyway, here is how it
looks like:
http://freehg.sympy.org/
I haven't setup pushing yet, but apart from that, all seems to be
working, for example:
http://freehg.sympy.org/u/a/test/shortlog
http://freehg.sympy.org/u/a/test/tags
but if you click on "summary" or "edit", e.g.:
http://freehg.sympy.org/u/a/test/
http://freehg.sympy.org/u/a/test/edit/
the page goes to hgwebdir, but we need it to go to the freehg django
web app (then it will work). Does anyone know how to do this in
apache? The config is in the wiki, but the relevant part is this:
<Location "/u">
SetHandler None
</Location>
RewriteRule u(/.*) /home/ondra/repos/freehg/web/hgwebdir.cgi$1
This needs to be there for addresses like:
http://freehg.sympy.org/u/a/test?cmd=head
etc. Only addresses of the exact form of
"http://freehg.sympy.org/u/a/test/" and
"http://freehg.sympy.org/u/a/test/edit/" should be skipped. I am
giving up for today, will try some other time again. If you know how
to do it, I would be very happy. :)
Thanks,
Ondrej
More information about the Mercurial
mailing list