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

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

From: Ryan Schmidt <subversion-2006c_at_ryandesign.com>
Date: 2006-08-23 22:34:06 CEST

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
Received on Wed Aug 23 22:36:15 2006

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.