[PATCH 0 of 2] hgweb: resolve path backwards to locate repository
Matt Mackall
mpm at selenic.com
Wed Nov 28 15:16:29 CST 2012
On Wed, 2012-11-28 at 17:58 +0100, Markus Zapke-Gründemann wrote:
> This is a first try to improve the performance of hgweb serving a high
> number repositories. The repository listing is generated using the
> usual walkrepos function. But if a single repository is accessed the
> path is resolved backwards to locate the repository. Unfortunately the
> code doesn't pass all tests. Any feedback on the code is highly
> appreciated.
This might be much easier to read if you made a function:
getallrepos(config)
..then added a filter that short-circuited path matching:
getallrepos(config, filter=somepath)
Literally going backwards is going to be very challenging if the config
has overlapping entries that make it order-dependent.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel
mailing list