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

Matt Mackall mpm at selenic.com
Thu Feb 16 22:49:03 UTC 2012


On Thu, 2012-02-16 at 23:34 +0100, Paul Boddie wrote:
> 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.)

Collapse, perhaps.

> 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.

I can't say without doing a bunch of research.

-- 
Mathematics is the supreme nostalgia of our time.





More information about the Mercurial-devel mailing list