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

Re: svn cp (newbie question)

From: Clemens <clemens.hintze_at_thalesgroup.com>
Date: 2007-08-10 07:41:42 CEST

Hello Jim,

Jim Thompson wrote:
> Jim Thompson wrote:
>> On linux...


>> Here's a first attempt to copy that file from trunk to tags (file name
>> included in destination):
>> [jft@coyote admin]$ svn cp
>> file:///home/jft/my_newrepos/my/up/portlets/portlet1/trunk/hello.c
>> file:///home/jft/my_newrepos/my/up/portlets/portlet1/tags/test/hello.c
>> -m "copy file to test tag"
>> svn: Path 'tags/test' not present

hmmm ... you should view it right like a filesystem here. Look this:

  mkdir trunk
  echo hello >> trunk/hello.txt
  mkdir tags
  cp trunk/hello.txt tags/test/hello.txt

Do you really expect this to work? A copy does not create lacking
directories. Subversion behaves exactly similar. To get it to work you
have to:

  svn mkdir file:///<your path here>/tags/test
  svn cp file:///<your path here>/trunk/hello.c \
         file:///<your path here>/tags/test/hello.c

just right the same as you would do using a filesystem.



To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Aug 10 07:40:04 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.