Skip Menu |

This queue is for tickets about the SVN-Web CPAN distribution.

Report information
The Basics
Id: 19274
Status: stalled
Priority: 0/
Queue: SVN-Web

People
Owner: Nobody in particular
Requestors: mschwern [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.47
Fixed in: (no value)



Subject: Option to treat a subdir as the repo root
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
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
I doubt youre still interested in this. I will leave this as stalled in case anyone wants to submit a patch.