You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by zi...@asamnet.de on 2003/08/07 13:42:37 UTC

browsing repositories

Hi there,

I have two similar repositories with the following directory structure:

1)
repos1/        (generated by "svnadmin create repos1")
repos1/repos1a (generated by "svnadmin create repos1/repos1a")

and

2)
repos2/        (generated by "svnadmin create repos2")
repos2/repos2a (generated by "svnadmin create repos2/repos2a").

browsing these repositories, I find two different kinds of html listing:

1)
Revision x:
branches/
tags/
trunk/

2)
Revision x:
branches/
repos2a/
tags/
trunk/

In the second case, the "sub-repository" repos2a is listed, but in the
first case not. Can I adjust html-browsing properties in SVN, or is it
all just left over to the DAV lib? Thanks for any help!

Best Regards,

Thomas Zinnbauer

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

Re: browsing repositories

Posted by zi...@asamnet.de.
"Michael Wood" <mw...@its.uct.ac.za> wrote:
> Subversion is not meant to have repositories within repositories.  Doing
> this is likely to confuse Subversion and/or Apache (or else do something
> unexpected).  Different projects should either be stored within a single
> repository or you should have your repositories completely separate from
> each other.  Repositories should not be nested.

Ok, I will take this into account. Guess I will maintain an index.html
file with links to all existing projects and keep the repositories
seperated. (The index file will be version-controlled, of course ;)))

Thanks for your answers!

Best regards,

Thomas Zinnbauer


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

svnadmin sanity check (was: Re: browsing repositories)

Posted by Michael Wood <mw...@its.uct.ac.za>.
Hi

On Tue, Aug 12, 2003 at 06:03:26PM +0100, Greg Thomas wrote:
> I wrote:
> 
> > DO NOT: svnadmin create repos1; svnadmin create repos1/repos1a
> 
> Can/should svn prevent you from doing this?

I suspect it would be pretty easy to do this as a sanity check.  I don't
know if it's worth checking all grandparent/great grandparent etc.
directories to see if they are repositories, though.

I have not looked at the svnadmin code, though, so this is just a guess.

P.S.  I've copied the dev list, since I think it's relevant.

-- 
Michael Wood <mw...@its.uct.ac.za>

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

svnadmin sanity check (was: Re: browsing repositories)

Posted by Michael Wood <mw...@its.uct.ac.za>.
Hi

On Tue, Aug 12, 2003 at 06:03:26PM +0100, Greg Thomas wrote:
> I wrote:
> 
> > DO NOT: svnadmin create repos1; svnadmin create repos1/repos1a
> 
> Can/should svn prevent you from doing this?

I suspect it would be pretty easy to do this as a sanity check.  I don't
know if it's worth checking all grandparent/great grandparent etc.
directories to see if they are repositories, though.

I have not looked at the svnadmin code, though, so this is just a guess.

P.S.  I've copied the dev list, since I think it's relevant.

-- 
Michael Wood <mw...@its.uct.ac.za>

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

Re: browsing repositories

Posted by Greg Thomas <Gr...@TheThomasHome.co.uk>.
On Tue, 12 Aug 2003 09:57:41 +0200, you wrote:

> DO NOT: svnadmin create repos1; svnadmin create repos1/repos1a

Can/should svn prevent you from doing this?

Greg

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


Re: browsing repositories

Posted by Michael Wood <mw...@its.uct.ac.za>.
Hi

On Mon, Aug 11, 2003 at 06:08:54PM +0200, zinnbath@asamnet.de wrote:
> "Michael Wood" <mw...@its.uct.ac.za> wrote:
> > On Thu, Aug 07, 2003 at 03:42:37PM +0200, zinnbath@asamnet.de wrote:
> >> Hi there,
> >>
> >> I have two similar repositories with the following directory structure:
> >>
> >> 1)
> >> repos1/        (generated by "svnadmin create repos1")
> >> repos1/repos1a (generated by "svnadmin create repos1/repos1a")
> > [snip]
> >
> > That's asking for trouble.  Why did you do that?
> 
> I thought, that the hierarchy withing the filesystem would always
> result in the same hierarchy when browsing through repositories, i.e.

No, see below.

> browsing a repository would make visible all "sub -repositories"
> (would be very comfortable if you had several repositories, wouldn't
> it ?).  But sometimes the browser shows the "sub-repositories" and
> sometimes does not and I wonder, how the html information is extracted
> from the repository, that's all.

The stuff in the repository is served up by mod_dav_svn.  This module
does not show files in the Unix/Windows filesystem, but rather the
contents of the Berkeley DB files (which store the Subversion
"filesystem").

Subversion is not meant to have repositories within repositories.  Doing
this is likely to confuse Subversion and/or Apache (or else do something
unexpected).  Different projects should either be stored within a single
repository or you should have your repositories completely separate from
each other.  Repositories should not be nested.

i.e. either: svnadmin create repos1 and then store in it:
	proj1/{trunk,branches,tags}
	proj2/{trunk,branches,tags}
	etc.
or: svnadmin create repos1 and store in it:
	{trunk,branches,tags} # For proj1
    svnadmin create repos2 and store in it:
	{trunk,branches,tags} # For proj2
    etc.
or a combination of both.

DO NOT: svnadmin create repos1; svnadmin create repos1/repos1a

I hope this helps.  :)

-- 
Michael Wood <mw...@its.uct.ac.za>

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

Re: browsing repositories

Posted by Tobias Ringström <to...@ringstrom.mine.nu>.
zinnbath@asamnet.de wrote:
> "Michael Wood" <mw...@its.uct.ac.za> wrote:
> 
>>On Thu, Aug 07, 2003 at 03:42:37PM +0200, zinnbath@asamnet.de wrote:
>>
>>>Hi there,
>>>
>>>I have two similar repositories with the following directory structure:
>>>
>>>1)
>>>repos1/        (generated by "svnadmin create repos1")
>>>repos1/repos1a (generated by "svnadmin create repos1/repos1a")
>>
>>[snip]
>>
>>That's asking for trouble.  Why did you do that?
> 
> I thought, that the hierarchy withing the filesystem would always result
> in the same hierarchy when browsing through repositories, i.e. browsing a
> repository would make visible all "sub -repositories" (would be very
> comfortable if you had several repositories, wouldn't it ?).
> But sometimes the browser shows the "sub-repositories" and sometimes does
> not and I wonder, how the html information is extracted from the
> repository, that's all.

Have you considered using a single repository? You can then maintain a 
directory structure within that repository to separate all your 
modules/projects. See

http://svnbook.red-bean.com/html-chunk/ch04s07.html#svn-ch4-sect7.1

/Tobias


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

Re: browsing repositories

Posted by zi...@asamnet.de.
"Michael Wood" <mw...@its.uct.ac.za> wrote:
> On Thu, Aug 07, 2003 at 03:42:37PM +0200, zinnbath@asamnet.de wrote:
>> Hi there,
>>
>> I have two similar repositories with the following directory structure:
>>
>> 1)
>> repos1/        (generated by "svnadmin create repos1")
>> repos1/repos1a (generated by "svnadmin create repos1/repos1a")
> [snip]
>
> That's asking for trouble.  Why did you do that?

I thought, that the hierarchy withing the filesystem would always result
in the same hierarchy when browsing through repositories, i.e. browsing a
repository would make visible all "sub -repositories" (would be very
comfortable if you had several repositories, wouldn't it ?).
But sometimes the browser shows the "sub-repositories" and sometimes does
not and I wonder, how the html information is extracted from the
repository, that's all.

Best Regards,

Thomas Zinnbauer


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

Re: browsing repositories

Posted by Michael Wood <mw...@its.uct.ac.za>.
On Thu, Aug 07, 2003 at 03:42:37PM +0200, zinnbath@asamnet.de wrote:
> Hi there,
> 
> I have two similar repositories with the following directory structure:
> 
> 1)
> repos1/        (generated by "svnadmin create repos1")
> repos1/repos1a (generated by "svnadmin create repos1/repos1a")
[snip]

That's asking for trouble.  Why did you do that?

-- 
Michael Wood <mw...@its.uct.ac.za>

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