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.
    % 

> 
> 
> 

Reply via email to