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

Re: Keeping tags/ and branches/ in the "trunk"

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Tue, 26 Jan 2010 01:38:17 +0200 (Jerusalem Standard Time)

Ryan Schmidt wrote on Mon, 25 Jan 2010 at 17:10 -0600:
>
> On Jan 25, 2010, at 07:25, trans wrote:
>
> > Is it possible to keep tags/ and branches/ in the trunk/ so as not to
> > have to differentiate these three at the top of a repository.
>
> I'm going to go with a firm "no" on this one. Do not attempt to do
> this. Instead, follow the standard layout.
>
> In your scheme, not only, as you've noticed, would checking out the
> trunk also check out all branches and all tags, which would be
> wasteful,

+1. (If you think for a moment, it's going to be O(n^2) in the number of
branches/tags.)

> it also prevents you from using the usual way to create tags, i.e.
> copying the trunk to the branches or tags directory -- in your scheme,
> you can't do this, because you can't copy a directory into itself.
>
> $ svn cp trunk trunk/branches/foo
> svn: Cannot copy path 'trunk' into its own child 'trunk/branches/foo'
>

Works with URLs:

    % svn cp ^/trunk/ ^/trunk/foo -mr2

    Committed revision 2.
    % svn up
    A foo
    A foo/A
    A foo/A/B
    A foo/A/B/lambda
    A foo/A/B/E
    A foo/A/B/E/alpha
    A foo/A/B/E/beta
    A foo/A/B/F
    A foo/A/mu
    A foo/A/C
    A foo/A/D
    A foo/A/D/gamma
    A foo/A/D/G
    A foo/A/D/G/pi
    A foo/A/D/G/rho
    A foo/A/D/G/tau
    A foo/A/D/H
    A foo/A/D/H/chi
    A foo/A/D/H/omega
    A foo/A/D/H/psi
    A foo/iota
    Updated to revision 2.
    %

>
>
>
Received on 2010-01-26 00:38:39 CET

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.