You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by allan juul <la...@inet.uni2.dk> on 2004/12/30 21:59:43 UTC

svn copy - tags - avoid copying parent dir

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'


thanks
./allan



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svn copy - tags - avoid copying parent dir

Posted by allan juul <la...@inet.uni2.dk>.
Max Bowsher wrote:

> allan juul wrote:

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



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


ahh, great thanks!

makes sense

./allan


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svn copy - tags - avoid copying parent dir

Posted by Max Bowsher <ma...@ukf.net>.
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