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

RE: SVN Copy when directory exists

From: Daniel Becroft <Daniel.Becroft_at_supercorp.com.au>
Date: 2007-11-13 23:56:58 CET

> -----Original Message-----
> From: John Peacock [mailto:john.peacock@havurah-software.org]
> Sent: Tuesday, 13 November 2007 8:04 PM

<snipped />

> > E.g.
> > > svn copy trunk branches/branch_name
> > A branches\branch_name
> >
> > > svn copy trunk branches/directory_exists
> > A branches\directory_exists\trunk
>
> What did you expect this to do? Did you expect that it would
> replace the
> contents of the previous branch? If so, the sequence is simply
>
> $ svn delete branches/directory_exists
> $ svn copy trunk branches/directory_exists
>
> and you are good to go.

Now that I think about it in terms of directories and contents AND history, rather than just directories and contents, then the way that the copy command works now makes sense. If a directory is to be copied over the top of an already existing directory, then it requires a merge.

I guess I wasn't expecting it as this scenario wasn't documented (that I could see).

Cheers,
Daniel B.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Nov 13 23:59:23 2007

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.