[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: John Peacock <john.peacock_at_havurah-software.org>
Date: 2007-11-13 11:04:11 CET

Daniel Becroft wrote:
> I couldn't find this documented anywhere in the Redbean Subversion book,
> so am not sure if this is a defect, or whether this is functioning as
> designed. If the latter, could someone possible provide some insight as
> to why? It seems to be different to how the copy commands behave on
> both *nix and Windows.

No, actually that is exactly how it works under *nix (at least, don't have
Windows handy to check).

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

HTH

John

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Nov 13 11:04:14 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.