You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Michael March <mm...@gmail.com> on 2006/08/23 18:04:37 UTC

Easy way to dynamically create dir structure on server side copy?

I am sure there is a VERY obvious answer to this but..

If I am doing a server side copy:

   svn cp http://server.net/svn/repo/myproject/dev/code/trunk \
http://server.net/svn/repo/toclient/release4/subdir1/subdir2/myproject

.. and if 'subdir1/subdir2' don't already exist.. is there an easy way
to have the copy command create those missing dirs on-the-fly?

thanks!

-- 
<admiral>

Michael F. March

          "Seriously" - HSR

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

Re: Easy way to dynamically create dir structure on server side copy?

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Aug 23, 2006, at 21:54, Michael March wrote:

>>    > I am sure there is a VERY obvious answer to this but..
>>    >
>>   > If I am doing a server side copy:
>>   >
>>   >   svn cp http://server.net/svn/repo/myproject/dev/code/trunk \
>>   > http://server.net/svn/repo/toclient/release4/subdir1/subdir2/ 
>> myproject
>>   >
>>   > .. and if 'subdir1/subdir2' don't already exist.. is there an  
>> easy way
>>   > to have the copy command create those missing dirs on-the-fly?
>>   >
>>   > thanks!
>
>> The only answer I've found is "no" :-/ I end up manually creating the
>>  directory structure beforehand in separate commits.
>
> Arg..
>
> So can you create dirs 'server side' then?
>
> The only way I can think to make directories on the 'server side'
> without doing a 'checkout' is to make the new dirs locally  and then
> do an 'import'..

svn mkdir http://server.net/svn/repo/toclient/release4/subdir1
svn mkdir http://server.net/svn/repo/toclient/release4/subdir1/subdir2


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

Re: Easy way to dynamically create dir structure on server side copy?

Posted by Michael March <mm...@gmail.com>.
>    > I am sure there is a VERY obvious answer to this but..
>    >
>   > If I am doing a server side copy:
>   >
>   >   svn cp http://server.net/svn/repo/myproject/dev/code/trunk \
>   > http://server.net/svn/repo/toclient/release4/subdir1/subdir2/myproject
>   >
>   > .. and if 'subdir1/subdir2' don't already exist.. is there an easy way
>   > to have the copy command create those missing dirs on-the-fly?
>   >
>   > thanks!

> The only answer I've found is "no" :-/ I end up manually creating the
>  directory structure beforehand in separate commits.

Arg..

So can you create dirs 'server side' then?

The only way I can think to make directories on the 'server side'
without doing a 'checkout' is to make the new dirs locally  and then
do an 'import'..

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