You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Gregory Bartholomew <gr...@gmail.com> on 2007/09/07 14:51:11 UTC
directory listing for parentpath
Now I see what you want. I get the same when I browse to the
parent-path. 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";
}
gb
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: directory listing for parentpath
Posted by Ryan Schmidt <su...@ryandesign.com>.
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