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

Re: svn copy - tags - avoid copying parent dir

From: Max Bowsher <maxb_at_ukf.net>
Date: 2004-12-30 23:12:07 CET

allan juul wrote:
> hi
>
> is it possible [in a simple command] to avoid copying the actual parent
> directory when using svn copy on URLs?
>
> it seems IMHO that 'svn copy' does one thing when operating on working
> copies and another on URL's.
>
>
> please consider the following flow:
>
> $ svn list -R URL/trunk/MAIN/project_1
>
> file_1
> file_2
> dir_1/
> dir_1/file_1
>
> $ svn copy \
> URL/trunk/MAIN/project_1 \
> URL/tags/MAIN/project_1/RC-1 \
> -m "Tagging a sub project"
>
>
> $ svn list -R URL/tags/MAIN/project_1/RC-1
>
> project_1/
> project_1/file_1
> project_1/file_2
> project_1/dir_1/
> project_1/dir_1/file_1
> ^^^^^^^^^
>
> Basically i wanted that last 'svn list' command to show exactly the same
> as the first 'svn list'

The behaviour is consistent between URLs and WCs, but it matters whether the
target directory exists or not.

If the directory URL/tags/MAIN/project_1/RC-1 had not existed before you
executed the copy command, you would have acheived what you wanted.

Max.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Dec 30 23:14:50 2004

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.