开发者

Handle multiple projects with SVN?

开发者 https://www.devze.com 2023-02-15 01:49 出处:网络
I\'ve decided to handle all my projects using SVN, and thus I set up a windows server with XAMPP installed and installed subversion to it. I followed a tutorial (I don\'t remember the name) and I ende

I've decided to handle all my projects using SVN, and thus I set up a windows server with XAMPP installed and installed subversion to it. I followed a tutorial (I don't remember the name) and I ended up with a folder C:/svn that contains an apache config file and all my repositories.

The trouble is: For each repository I add I have to add a bunch of lines to the apache configuration and restart apache. This is how the config file looks: (With foobar data)

<Location /svn/melior>
  DAV svn
  SVNPath C:/svn/melior

  AuthType Basic
  AuthName "Melior subversion repository"
  AuthUserFile C:/svn/.htpasswd
  Require valid-user

  AuthzSVNAccessFile C:/svn/svn-acl
</Location>

<Location /svn/urs>
  DAV svn
  SVNPath C:/svn/urs

  AuthType Basic
  AuthName "URS s开发者_StackOverflow中文版ubversion repository"
  AuthUserFile C:/svn/.htpasswd
  Require valid-user

  AuthzSVNAccessFile C:/svn/svn-acl
</Location>

And that's for two repositories. What I'm looking for is some way to apply this configuration to a parent folder so that every time I add a repository I can access it via apache. The simplest way to do this would be to use only one repository and add every project as a child folder of trunk.

Anyway, what are your thoughts and preferences when working with a growing collection of SVN repositories?


You need to use the SVNParentPath directive, to configure a directory which contains repositories. Details in the Subversion Manual.

0

精彩评论

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