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

directory listing for parentpath

From: Gregory Bartholomew <gregory.lee.bartholomew_at_gmail.com>
Date: 2007-09-07 16:51:11 CEST

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]

Then put this perl script (svnparent) in your cgi-bin:

#! /usr/bin/perl

$url_base = '';
$fs_base = '/home/ayedakrout/SVNParent';

opendir(DIR, "$fs_base");
@directory = grep { !/^\./ && -d "$fs_base/$_" } readdir(DIR);

foreach $dir (@directory) {
   print "<a href=\"$url_base/$dir\">$dir</a>\n";


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Sep 7 16:48:11 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.