hgwebdir directory walking

Dirkjan Ochtman dirkjan at ochtman.nl
Wed Aug 12 01:41:20 CDT 2009


On Wed, Aug 12, 2009 at 00:24, Kevin Berridge<kevin.w.berridge at gmail.com> wrote:
> It almost already supports this.  For example, say you had
> /my/root/forestA/ and forestA contained 5 repos.  If you navigate to
> http://blah/repo/hgwebdir.cgi/my/root/forestA, it will list just the 5
> repos.  So it already supports parsing partial virtual paths, it just
> doesn't support listing directories instead of full repos.
>
> I tried to update it to support this, but I don't know Python and I
> don't know hgweb's templating system, so I was unable to get it to
> work.  This paste shows the update I tried:
> http://paste.lisp.org/display/85220
>
> Once I worked out all the parse errors it ran, but it just didn't list
> anything.

Someone once worked on a patch for this, but it didn't go anywhere
because they didn't figure out the right place to hook into. You could
search for the patch on this list. There might also be an issue in the
bts which you should look up. If there isn't one, you should probably
make one.

I'm happy to help with all this, but FYI, I can be a bit finicky about
what code gets in.

Cheers,

Dirkjan



More information about the Mercurial-devel mailing list