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

Re: Multiple Repositiories, SVNParentPath, and Apache AutoIndex

From: Juanma Barranquero <jmbarranquero_at_wke.es>
Date: 2004-04-02 11:11:47 CEST

On Thu, 1 Apr 2004 07:05:15 -0600
"Stephen Duncan" <jrduncans@stephenduncanjr.com> wrote:

> Say I have the following structure, where the single letter directories
> are repositories, the rest are normal directories:
>
> svn
> ->webapps
> ->p
> ->q
> ->administrative
> ->r
>
> I'd like to be able to go the svn directory through a browser, and see
> the webapps and administrative folders, and be able to click on them to
> navigate down. Say I click on webapps, I'd like to see links for p and
> q. If I click on p, then I'd like to see what the svn module normally
> provides when I go directly to svn/webapps/p.

A slightly different way:

Suppose you access your p, q and r repositories through /repo:

  <Location /repo>
    DAV svn
    SVNParentPath "/my/repos" # Or whatever
    ...
  </Location>

  <Directory "/svn">
    AllowOverride FileInfo
    Options +Indexes
    ...
  </Directory>

And, in the svn directory, an .htaccess with:

  RedirectPermanent /svn/webapps/p http://my-server/repo/p
  RedirectPermanent /svn/webapps/q http://my-server/repo/q
  RedirectPermanent /svn/administrative/q http://my-server/repo/r

This way, you can navigate /svn with autoindexing, and when clicking on
the link for p, q or r, you are directed to the mod_dav_svn-served path.

It is not exactly what you're asking, if I understand you, because:

 - /svn/webapps/(p,q) is not the same as /repo/(p,q)
   I'm not sure if that's posible, although I imagine it is, with
   mod_rewrite trickery.

 - When clicking on p, the user can see in the address bar that he's
   been redirected (he was navigating /svn/webapps and suddenly he's in
   /repo/p).

Still, maybe that's acceptable for you.

                                                                Juanma

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Apr 2 11:12:20 2004

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.