Returning to hgwebdir.cgi and subdirectories ...
Martin Geisler
mg at aragost.com
Thu May 5 10:46:21 UTC 2011
Paul Boddie <paul.boddie at biotek.uio.no> writes:
> It looks like my patch! I did briefly take a look at this a few weeks
> ago, but as you've noticed, the code has changed enough to make the
> patch difficult to apply. At one point I thought that the vanilla code
> for hgweb might have started supporting subrepositories, but I'd have
> to look again to make sure.
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.
> It's pretty difficult to work out what kind of fancy footwork is going
> on in that code sometimes when one comes back to it after a few
> weeks/months and when there's a "no comment" policy in the Mercurial
> project. I work on quite a few different projects and even in my own
> projects I'd be lost if it weren't for things like comments and
> copious technical documentation.
I also find our coding style terse, but we do add comments and docstring
where we can and where people see a need for them.
So if there are parts of the code you don't understand, then please
complain about it on the devel list. Use annotate to find the person who
wrote the difficult part and Cc him for a faster response.
--
Martin Geisler
aragost Trifork
Professional Mercurial support
http://mercurial.aragost.com/kick-start/
More information about the Mercurial
mailing list