开发者

SVN multiple repositories in subfolders

开发者 https://www.devze.com 2022-12-27 19:18 出处:网络
I\'m using apache+svn apache config file: LoadModule dav_module modules/mod_dav.so LoadModule dav_svn_module modules/mod_dav_svn.so

I'm using apache+svn

apache config file:

LoadModule dav_module modules/mod_dav.so
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so

<Location /code>
    DAV svn
    SVNParentPath "c:/repositories"
</Location>

Imagine i have this file structure (开发者_如何学JAVAin every t? i have one svn repository)

c
    repositories
        uc1
            0809v
                t1
                t2
                t3
            0809i
                t1
                t2
        uc2
            t1
            t2
        t1

I can access the repositories using:

svn://domain.com/code/uc1/0809v/t1  
svn://domain.com/code/uc1/0809v/t2  
svn://domain.com/code/uc1/0809v/t3  

I want to access them using the urls:

http://domain.com/code/uc1/0809v/t1  
http://domain.com/code/uc1/0809v/t2  
http://domain.com/code/uc1/0809v/t3  

and see the content of the repository in the browser.

If i create the repository on the root of the svn folder i can see the repository (http://domain.com/code/t1) when i try the other urls i get the error Could not open the requested SVN filesystem

My question is,

It is possible to do a search in all subfolders looking for svn repositories?

Edit

The documentation states that the directories under SVNParentPath have to be repositories, so no looking through all subdirectories.

You might be able to make script though, that would output several Location-blocks matching the parent folders of SVN repositories.

With this solution given by https://serverfault.com/users/24957/ptman do i have to restart apache every time i create a new repository !?


by https://serverfault.com/users/24957/ptman in https://serverfault.com/questions/135459/svn-multiple-repositories-in-subfolders

The documentation states that the directories under SVNParentPath have to be repositories, so no looking through all subdirectories.

You might be able to make script though, that would output several Location-blocks matching the parent folders of SVN repositories.

0

精彩评论

暂无评论...
验证码 换一张
取 消