[PATCH] Add "prefix" option to "hg serve", useful when running behind a reverse proxy

Michele Cella michele.cella at gmail.com
Thu Jan 10 03:31:30 CST 2008


Sorry, I think that's been the thunderbird/gmane combination.

I'm going to resend it using the email command and folding everything
into a single patch since it's all pretty simple.

Thanks anyway! :-)

Ciao
Michele

On 1/7/08, Oliver Xymoron <oxymoron at waste.org> wrote:
>
> On Mon, 2008-01-07 at 21:33 +0100, Michele Cella wrote:
> > # HG changeset patch
> > # User Michele Cella <michele.cella at gmail.com>
> > # Date 1199731663 -3600
> > # Node ID 77a77c3f41bd531a96e161ddb10f3c7908e7ae87
> > # Parent  956e01c31914baa49cf87a5b97b38781797cfcf9
> > introducing the "prefix" configuration option in the "web" section
> > allows "hg serve" to serve from any prefix, not just root ('/')
> >
> > diff -r 956e01c31914 -r 77a77c3f41bd mercurial/hgweb/server.py
> > --- a/mercurial/hgweb/server.py       Thu Jan 03 20:27:32 2008 -0600
> > +++ b/mercurial/hgweb/server.py       Mon Jan 07 19:47:43 2008 +0100
> > @@ -76,7 +76,7 @@ class _hgwebhandler(object, BaseHTTPServ
> >           self.do_POST()
> >
> >       def do_hgweb(self):
> > -        path_info, query = _splitURI(self.path)
> > +        path, query = _splitURI(self.path)
> >
> >           env = {}
>
> Looks like gmail mangled your spaces. Also please send multiple patches
> as separate messages.
>
> --
>  "Love the dolphins," she advised him. "Write by W.A.S.T.E.."
>
>
>


More information about the Mercurial-devel mailing list