[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: directory listing for parentpath

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-09-07 23:45:41 CEST

On Sep 7, 2007, at 09:51, Gregory Bartholomew wrote:

> Now I see what you want.

Was your message in reply to another message? I didn't see it.

> I get the same when I browse to the parent-path.

What do you get?

> You should ask the subversion development team for such
> a feature. It is easy to work around though. Something like the
> following should do the trick for you.
>
> In your httpd.conf add the following:
>
> LoadModule rewrite_module modules/mod_rewrite.so
> <IfModule mod_rewrite.c>
> RewriteCond %{REQUEST_FILENAME} /^ParentPath(/)?$/
> RewriteRule .* /cgi-bin/svnparent [F,L]
> </IfModule>
>
> Then put this perl script (svnparent) in your cgi-bin:
>
> #! /usr/bin/perl
>
> $url_base = 'http://10.206.103.111/ParentPath';
> $fs_base = '/home/ayedakrout/SVNParent';
>
> opendir(DIR, "$fs_base");
> @directory = grep { !/^\./ && -d "$fs_base/$_" } readdir(DIR);
> closedir(DIR);
>
> foreach $dir (@directory) {
> print "<a href=\"$url_base/$dir\">$dir</a>\n";
> }

Is this doing something different than "SVNListParentPath on" would?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Sep 7 23:44:55 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.