[PATCH] hgweb: support directory and subrepository navigation when descend mode is disabled

Paul Boddie paul at boddie.org.uk
Thu Feb 16 16:34:30 CST 2012


On Thursday 16 February 2012 22:46:50 Matt Mackall wrote:
> On Tue, 2012-02-14 at 00:36 +0100, Paul Boddie wrote:
> >
> > I understand the objection now, having looked at the descend behaviour
> > and the * and ** path behaviour as well. Would a separate value be
> > appropriate for descend? Something like "descend = Navigate"?
>
> Probably not. I can't say I like not-quite-booleans. Perhaps an
> independent variable.

I guess the two settings would be combined like this, then:

navigate = False, descend = False : show a single level
navigate = False, descend = True  : show all levels at a single level
navigate = True, descend = False : show a single level, nothing to navigate
navigate = True, descend = True  : show a level at a time

(A better name than "navigate" might be beneficial.)

I also took the liberty of trying to document the * and ** behaviour on the 
Wiki, and just to clarify, is the only difference between those wildcards 
that ** shows subrepositories whereas * doesn't? This confused me because ** 
is often used by tools to mean "recurse", but the descend setting seems to 
control actual filesystem recursion, not the path specification.

Paul


More information about the Mercurial-devel mailing list