You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Glazner Ryan S Contr 412 RANS/ENR <ry...@edwards.af.mil> on 2008/01/15 19:41:09 UTC

Directory structure for repositories

I have a Windows 2003 Server running Apache 2.2 with (I believe) the
most current Subversion. I want my SVN to look something like this:

 

C:\svn <-- SVN root for SVNParentPath

C:\svn\Projects\ProjectA <-- Sample repo within subdirectory of svn root

C:\svn\Personal\MyRepo <-- Another sample repo parallel to the above in
structure

 

I have this set up already on the drive, with the following Apache
setup:

 

<Location /svn>

            DAV svn

            SVNParentPath C:\svn

            AuthType Basic

            AuthUserFile C:\svn\svn-passwd

            AuthzSVNAccessFile C:\svn\authz

            Require valid-user

</Location>

 

With this setup, it seems I can create a new repo at C:\svn\(repo), but
if I try to do something like C:\svn\Projects\(MyProjectRepo), Apache
chops up all of the incoming URLs (i.e.
http://server/svn/Projects/MyProjectRepo) to read a repo named Projects.
I thought the SVNParentPath was supposed to allow multiple repositories
under it. Is there a way around this? I've been trying different things
with all of the different configurations for weeks trying to get
something like this to work.

 

Thanks!

Ryan Glazner


Re: Directory structure for repositories

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jan 15, 2008, at 19:46, Glazner Ryan S Contr 412 RANS/ENR wrote:

>> As a suggestion, could you setup the separate areas as different  
>> locations >under Apache?
>>
>> E.g.
>> <Location /svn/project>
>> 	SVNParentPath C:\svn\Projects
>> <Location /svn/Personal>
>> 	SVNParentPath C:\svn\Personal
>>
>> or
>>
>> <Location /svn-project>
>> 	SVNParentPath C:\svn\Projects
>> <Location /svn-personal>
>> 	SVNParentPath C:\svn\Personal
>
> I had thought of that... the problem is something like:
> C:\svn\Personal\Ryan\(repo)
>
> It's just pushing the problem back further. I and anyone creating a  
> repository would have to edit the Apache config. The particular  
> Subversion usage in this case requires multiple people to be  
> creating and managing repositories who have no business being in  
> the Apache config. For this reason, I'm looking for something  
> fairly simple such that creating and managing repositories is a  
> stepped process that basically only touches Subversion, or at least  
> that I can set up and only need to modify occasionally.
>
> It would still work. It just takes a lot more planning on my part  
> on the actual directories involved for the solution to fit the  
> above requirements (i.e. I'm the only one touching Apache). I  
> suppose this is fine, at least until a case comes up that borks for  
> the original reasons.

Maybe a web-based repository manager like SVNManager would help you?

http://svnmanager.sourceforge.net/

It would allow people to create repositories without needing access  
to the server. I don't know if it will modify your apache  
configuration for you though.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

RE: RE: RE: RE: Directory structure for repositories

Posted by Glazner Ryan S Contr 412 RANS/ENR <ry...@edwards.af.mil>.
>> >> I have a Windows 2003 Server running Apache 2.2 with (I believe)  
>> >> the most current Subversion. I want my SVN to look something like  
>> >> this:
>> >>
>> >> C:\svn ß SVN root for SVNParentPath
>> >> C:\svn\Projects\ProjectA ß Sample repo within subdirectory 
>> of svn root
>> >> C:\svn\Personal\MyRepo ß Another sample repo parallel to 
> the above  
>> >> in structure
>> >>
>> >> I have this set up already on the drive, with the 
>> following Apache  
>> >> setup:
>> >>
>> >> <Location /svn>
>> >>             DAV svn
>> >>             SVNParentPath C:\svn
>> >>             AuthType Basic
>> >>             AuthUserFile C:\svn\svn-passwd
>> >>             AuthzSVNAccessFile C:\svn\authz
>> >>             Require valid-user
>> >> </Location>
>> >>
>> >> With this setup, it seems I can create a new repo at 
>> C:\svn\(repo),  
>> >> but if I try to do something like 
>> C:\svn\Projects\(MyProjectRepo),  
>> >> Apache chops up all of the incoming URLs (i.e. http://server/svn/ 
>> >> Projects/MyProjectRepo) to read a repo named Projects. I thought  
>> >> the SVNParentPath was supposed to allow multiple 
>> repositories under  
>> >> it. Is there a way around this? I've been trying different things  
>> >> with all of the different configurations for weeks trying to get  
>> >> something like this to work.
>> 
>> >Subversion does not currently support this. SVNParentPath 
>> only finds  
>> >repositories directly under the indicated directory, not 
>> repositories  
>> >in directories under the indicated directory.
>> 
>> >But I think this would be a useful feature to have. I recall the  
>> >request being made at least twice before on this mailing 
>> list. But I  
>> >can find no ticket. It may be time to create a ticket for this.
>> 
>> That would certainly explain it not working. Okay, so I'm pretty much
>> forced to create one huge "department" repository with 
>> project branches
>> and possible subproject subbranches, it sounds like. I know it may be
>> somewhat of a tall order, but is there a simpler way of accomplishing
>> the goal?
>
>NOTE: I haven't setup SVN with Apache/HTTP.
>
>As a suggestion, could you setup the separate areas as different locations >under Apache?
>
>E.g.
><Location /svn/project>
>	SVNParentPath C:\svn\Projects
><Location /svn/Personal>
>	SVNParentPath C:\svn\Personal
>
>or 
>
><Location /svn-project>
>	SVNParentPath C:\svn\Projects
><Location /svn-personal>
>	SVNParentPath C:\svn\Personal
>
>Etc.
>
>Cheers,
>Daniel B.

I had thought of that... the problem is something like:
C:\svn\Personal\Ryan\(repo)

It's just pushing the problem back further. I and anyone creating a repository would have to edit the Apache config. The particular Subversion usage in this case requires multiple people to be creating and managing repositories who have no business being in the Apache config. For this reason, I'm looking for something fairly simple such that creating and managing repositories is a stepped process that basically only touches Subversion, or at least that I can set up and only need to modify occasionally.

It would still work. It just takes a lot more planning on my part on the actual directories involved for the solution to fit the above requirements (i.e. I'm the only one touching Apache). I suppose this is fine, at least until a case comes up that borks for the original reasons.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


RE: RE: RE: Directory structure for repositories

Posted by Daniel Becroft <Da...@supercorp.com.au>.
> -----Original Message-----
> From: Glazner Ryan S Contr 412 RANS/ENR
> [mailto:ryan.glazner.ctr@edwards.af.mil]
> Sent: Wednesday, 16 January 2008 10:46 AM
> To: Ryan Schmidt
> Cc: users@subversion.tigris.org
> Subject: RE: RE: Directory structure for repositories
> 
> 
> >> I have a Windows 2003 Server running Apache 2.2 with (I believe)  
> >> the most current Subversion. I want my SVN to look something like  
> >> this:
> >>
> >> C:\svn ß SVN root for SVNParentPath
> >> C:\svn\Projects\ProjectA ß Sample repo within subdirectory 
> of svn root
> >> C:\svn\Personal\MyRepo ß Another sample repo parallel to 
> the above  
> >> in structure
> >>
> >> I have this set up already on the drive, with the 
> following Apache  
> >> setup:
> >>
> >> <Location /svn>>
> >>             DAV svn
> >>             SVNParentPath C:\svn
> >>             AuthType Basic
> >>             AuthUserFile C:\svn\svn-passwd
> >>             AuthzSVNAccessFile C:\svn\authz
> >>             Require valid-user
> >> </Location>>
> >>
> >> With this setup, it seems I can create a new repo at 
> C:\svn\(repo),  
> >> but if I try to do something like 
> C:\svn\Projects\(MyProjectRepo),  
> >> Apache chops up all of the incoming URLs (i.e. http://server/svn/ 
> >> Projects/MyProjectRepo) to read a repo named Projects. I thought  
> >> the SVNParentPath was supposed to allow multiple 
> repositories under  
> >> it. Is there a way around this? I've been trying different things  
> >> with all of the different configurations for weeks trying to get  
> >> something like this to work.
> 
> >Subversion does not currently support this. SVNParentPath 
> only finds  
> >repositories directly under the indicated directory, not 
> repositories  
> >in directories under the indicated directory.
> 
> >But I think this would be a useful feature to have. I recall the  
> >request being made at least twice before on this mailing 
> list. But I  
> >can find no ticket. It may be time to create a ticket for this.
> 
> That would certainly explain it not working. Okay, so I'm pretty much
> forced to create one huge "department" repository with 
> project branches
> and possible subproject subbranches, it sounds like. I know it may be
> somewhat of a tall order, but is there a simpler way of accomplishing
> the goal?

NOTE: I haven't setup SVN with Apache/HTTP.

As a suggestion, could you setup the separate areas as different locations under Apache?

E.g.
<Location /svn/project>
	SVNParentPath C:\svn\Projects
<Location /svn/Personal>
	SVNParentPath C:\svn\Personal

or 

<Location /svn-project>
	SVNParentPath C:\svn\Projects
<Location /svn-personal>
	SVNParentPath C:\svn\Personal

Etc.

Cheers,
Daniel B.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


RE: RE: Directory structure for repositories

Posted by Glazner Ryan S Contr 412 RANS/ENR <ry...@edwards.af.mil>.
>> I have a Windows 2003 Server running Apache 2.2 with (I believe)  
>> the most current Subversion. I want my SVN to look something like  
>> this:
>>
>> C:\svn ß SVN root for SVNParentPath
>> C:\svn\Projects\ProjectA ß Sample repo within subdirectory of svn root
>> C:\svn\Personal\MyRepo ß Another sample repo parallel to the above  
>> in structure
>>
>> I have this set up already on the drive, with the following Apache  
>> setup:
>>
>> <Location /svn>>
>>             DAV svn
>>             SVNParentPath C:\svn
>>             AuthType Basic
>>             AuthUserFile C:\svn\svn-passwd
>>             AuthzSVNAccessFile C:\svn\authz
>>             Require valid-user
>> </Location>>
>>
>> With this setup, it seems I can create a new repo at C:\svn\(repo),  
>> but if I try to do something like C:\svn\Projects\(MyProjectRepo),  
>> Apache chops up all of the incoming URLs (i.e. http://server/svn/ 
>> Projects/MyProjectRepo) to read a repo named Projects. I thought  
>> the SVNParentPath was supposed to allow multiple repositories under  
>> it. Is there a way around this? I've been trying different things  
>> with all of the different configurations for weeks trying to get  
>> something like this to work.

>Subversion does not currently support this. SVNParentPath only finds  
>repositories directly under the indicated directory, not repositories  
>in directories under the indicated directory.

>But I think this would be a useful feature to have. I recall the  
>request being made at least twice before on this mailing list. But I  
>can find no ticket. It may be time to create a ticket for this.

That would certainly explain it not working. Okay, so I'm pretty much
forced to create one huge "department" repository with project branches
and possible subproject subbranches, it sounds like. I know it may be
somewhat of a tall order, but is there a simpler way of accomplishing
the goal?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: Directory structure for repositories

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jan 15, 2008, at 13:41, Glazner Ryan S Contr 412 RANS/ENR wrote:

> I have a Windows 2003 Server running Apache 2.2 with (I believe)  
> the most current Subversion. I want my SVN to look something like  
> this:
>
> C:\svn ß SVN root for SVNParentPath
> C:\svn\Projects\ProjectA ß Sample repo within subdirectory of svn root
> C:\svn\Personal\MyRepo ß Another sample repo parallel to the above  
> in structure
>
> I have this set up already on the drive, with the following Apache  
> setup:
>
> <Location /svn>
>             DAV svn
>             SVNParentPath C:\svn
>             AuthType Basic
>             AuthUserFile C:\svn\svn-passwd
>             AuthzSVNAccessFile C:\svn\authz
>             Require valid-user
> </Location>
>
> With this setup, it seems I can create a new repo at C:\svn\(repo),  
> but if I try to do something like C:\svn\Projects\(MyProjectRepo),  
> Apache chops up all of the incoming URLs (i.e. http://server/svn/ 
> Projects/MyProjectRepo) to read a repo named Projects. I thought  
> the SVNParentPath was supposed to allow multiple repositories under  
> it. Is there a way around this? I’ve been trying different things  
> with all of the different configurations for weeks trying to get  
> something like this to work.

Subversion does not currently support this. SVNParentPath only finds  
repositories directly under the indicated directory, not repositories  
in directories under the indicated directory.

But I think this would be a useful feature to have. I recall the  
request being made at least twice before on this mailing list. But I  
can find no ticket. It may be time to create a ticket for this.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org