[PATCH 0 of 2 RFC] Work to improve hgwebdir

timeless timeless at gmail.com
Wed Mar 16 02:35:57 UTC 2011


I'm doing some work on mxr.meego.com which now has two relatively large
collections of hg repositories (converted by hg-git from gitorious).

I'm asking for comments partially because I can't figure out how to write
tests for these patches, and partially because I'm unlikely to push for
inclusion beyond this email series.

The first thing I needed was to be able to merge repository lists so that
I wouldn't need to create magical symlink mazes. The repositories are
automatically collected by a script and i'd rather it not have to figure out
how to populate an unrelated and independent directory to support hgweb.
With this feature, obviously there will be a priority order in case things
collide. I believe it should be first come first serve (and this should be
tested as documentation).

 - Sample input is something like:
  [paths]
  / = /x/*, /y/*

The second problem I hit is that some repositories have some creative
timestamps. It seems that testing for |age is limited to "future", it doesn't
seem to even test the past ages. I think that for proper testing someone
needs to do a magical date.now() thing -- which I think probably overlaps
with testing code written for the progress extension.

 - Sample output here is something like:
  26 years from now


More information about the Mercurial-devel mailing list