Is freehg.org code available?

Jesper Noehr jesper at noehr.org
Fri Jul 4 05:45:31 CDT 2008


On Jul 3, 2008, at 10:25 PM, Ondrej Certik wrote:
> 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.

[...]

> 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. :)

You should be able to use RewriteCond[1] in combination with a regex  
catching urls ending with the patterns you want to skip, e.g.

RewriteCond 	%{REQUEST_URI}	!edit/$
RewriteCond	%{REQUEST_URI}	!delete/$

etc...


Jesper

[1]: http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewritecond




More information about the Mercurial mailing list