[PATCH 0 of 1] hgweb recursion

Mads Kiilerich mads at kiilerich.com
Wed Jun 20 19:02:23 CDT 2012


The hgweb help is not very helpful, and the source and comments doesn't help
clarifying. Here is one attempt of improving it - but without changing that the
walkrepos 'recurse' doesn't control recursion in general but only recursion
into working dirs.

Please comment on content or language. Or even better: Grab the patch, improve
it, and post it back.


The reason I looked at this is that I found that with

  [paths]
  repos = repos/*

and
  $ hg init repos/foo
  $ hg init repos/foo/bar
  $ hg init repos/baz/baz
I see
  repos/foo
  repos/baz/baz
but if I first did
  $ hg init repos
then I only see
  repos

I would expect that 'repos/*' (which looks like a glob expression) would look
_below_ repos without stopping at repos itself. Is that a reasonable
expectation? Is it a bug that should be fixed?


With 'repos/**' I then see
  repos
  repos/foo
  repos/foo/bar
  repos/baz/baz

'repos' do not do any harm in this case, but I guess it should be left out for
consistency ... but it might be convenient for publishing one repo with
subrepos.

/Mads


More information about the Mercurial-devel mailing list