Returning to hgwebdir.cgi and subdirectories ...
Paul Boddie
paul.boddie at biotek.uio.no
Thu May 5 12:22:57 UTC 2011
Lester Caine wrote:
> Martin Geisler wrote:
>> It does -- you can list repositories recursively and so both
>>
>> http://server/foo
>>
>> and
>>
>> http://server/foo/sub
>>
>> work for browsing, clone, push, pull, etc.
>
> The recursion is not the problem ...
> http://lsces.co.uk/hg/bitweaver/ is a super-project and
> http://lsces.co.uk/hg/bitweaver2/ shows all the sub-repo's but lists
> all of them at the top level.
(The theme on these repositories seems to be password protected!)
Yes, the idea of the patch, as I recall (and from reading my patch's
comment), is to allow browsing through directories to repositories, so
that with "descend" mode switched off, any plain directory containing
repositories is shown as a single entry in the repository index, and you
can then navigate inside such a directory to see the repositories it
holds. With Lester's repositories, this would mean a top-level
repository index showing only "hg-git", "bitweaver" and "bitweaver2".
In addition, the patch exposes subrepositories alongside their parents,
since browsing within a repository is a different activity from browsing
the available repositories in hgweb, and you couldn't easily mix
subrepositories with normally managed files in the "browse" or "files"
repository view and expect to jump between repositories by selecting
such a subrepository, although this behaviour may well have been changed
by now (and there's probably no technical obstacle preventing it from
being implemented).
Paul
More information about the Mercurial
mailing list