On Thu, 16 Feb 2017 16:41:08 -0500, Matt Harbison wrote:
> # HG changeset patch
> # User Matt Harbison <matt_harbi...@yahoo.com>
> # Date 1486875517 18000
> #      Sat Feb 11 23:58:37 2017 -0500
> # Node ID 4f2862487d789edc1f36b5687d828a2914e1dc32
> # Parent  afaf3c2b129c8940387fd9928ae4fdc28259d13c
> serve: add support for Mercurial subrepositories
> 
> I've been using `hg serve --web-conf ...` with a simple '/=projects/**' 
> [paths]
> configuration for awhile without issue.  Let's ditch the need for the manual
> configuration in this case, and limit the repos served to the actual subrepos.
> 
> This doesn't attempt to handle the case where a new subrepo appears while the
> server is running.  That could probably be handled with a hook if somebody 
> wants
> it.  But it's such a rare case, it probably doesn't matter for the temporary
> serves.
> 
> Unfortunately, the root of the webserver when serving multiple repos is the 
> html
> index file.  This makes the URL different for `hg serve` vs `hg serve -S`,
> because the top level repo then needs to be part of the path.  That can be
> fixed later.

I'm puzzled by this new version which extensively relies on somewhat magical
HTTP redirection. Instead, can't we fix hgwebdir to be able to host hgweb at
'/' URL, and add explicit URL to show the index page hidden by it?

That will be useful without subrepos. Currently we can't see the index page
'/foo' if we have a repository '/foo' and '/foo/bar'.
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to