On Mon May 15 14:47:14 2006, MSCHWERN wrote:
Show quoted text> It would be nice if there was a way to specify a "virtual repository
> root" using a subdirectory of the repository.
>
> For example, my repository at svn.schwern.org looks like this.
>
> /var/local/svnroot/ # the repository
> CPAN/
> Test-Simple/
> ExtUtils-MakeMaker/
> articles/
> Traffic_Lights/
>
> It would be nice if SVN::Web could pretend
> file:///var/local/svnroot/CPAN was the repository root in order to hide
> articles. Something like...
>
> repos:
> CPAN: /var/local/svnroot
> subdir: CPAN
>
> This would present a single repository (CPAN) which is
> file:///var/local/svnroot/CPAN
Nice, but tricky. I was thinking about this last night, and don't have
completely satisfactory solutions to the following problems.
If you're using the revision view, and stepping through changes using
the "previous revision" and "next revision" links, what should happen
when you come to a revision that has changes to a path that's not
included in the view? E.g., a commit to something under articles/ in
the example you give above.
What happens if you if come to a revision that affected files under both
CPAN/ and articles/? Or have a file under CPAN/ that was originally
copied from a file under articles/ (perhaps you've PODified an article
for inclusion on CPAN)?
The simplest solution may well be to mask off all paths that don't match
a regex, and if there are no paths to show at the end then show a "This
commit didn't change any files you can view". Which'll work, but
doesn't seem terribly user friendly.
Thoughts?
N