[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: Jim Thompson <jim.thompson_at_doit.wisc.edu>
Date: 2007-08-10 02:50:34 CEST

Jim Thompson wrote:
> On linux...
>
> [jft@coyote admin]$ svn --version
> svn, version 1.4.3 (r23084)
> compiled Feb 20 2007, 11:46:52
>
> According to
> http://svnbook.red-bean.com/nightly/en/svn.ref.svn.c.copy.html
> "svn copy Copy a file or directory in a working copy or in the
> repository."
>
> Trying some command line stuff ...
>
> OK - this looks fairly normal:
>
> [jft@coyote admin]$ svn list
> file:///home/jft/my_newrepos/my/up/portlets/portlet1
> branches/
> tags/
> trunk/
>
> And we only have one file in trunk...
>
> [jft@coyote admin]$ svn list
> file:///home/jft/my_newrepos/my/up/portlets/portlet1/tags
> [jft@coyote admin]$
> [jft@coyote admin]$ svn list
> file:///home/jft/my_newrepos/my/up/portlets/portlet1/branches
> [jft@coyote admin]$
> [jft@coyote admin]$ svn list
> file:///home/jft/my_newrepos/my/up/portlets/portlet1/trunk
> hello.c
> [jft@coyote admin]$
>
>
> 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
>
>
> Verifying that we still have nothing in the tags directory:
>
> [jft@coyote admin]$ svn list
> file:///home/jft/my_newrepos/my/up/portlets/portlet1/tags
> [jft@coyote admin]$
>
>
> OK, let's try again (file name not 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 -m
> "copy file to test tag"
>
> Committed revision 25.
>
>
> It looks like it worked, but ....
>
> [jft@coyote admin]$ svn list
> file:///home/jft/my_newrepos/my/up/portlets/portlet1/tags
> test
> [jft@coyote admin]$
> [jft@coyote admin]$ svn list
> file:///home/jft/my_newrepos/my/up/portlets/portlet1/tags/test
> test
> [jft@coyote admin]$
>
> Huh? test inside test?? What is that? It's the file, which has been
> renamed...
>
Ooops! Hit send too soon... Actually that's the *first* test... the
test/test shows this:

[jft@coyote admin]$ svn cat
file:///home/jft/my_newrepos/my/up/portlets/portlet1/tags/test/test
svn: Failure opening '/my/up/portlets/portlet1/tags/test/test'
svn: '/my/up/portlets/portlet1/tags/test' is not a directory in
filesystem '/home/jft/my_newrepos/db'
[jft@coyote admin]$

> [jft@coyote admin]$ svn cat
> file:///home/jft/my_newrepos/my/up/portlets/portlet1/tags/test
> /*
>
> Documentation about this file follows...
> File last changed on $Date: 2007-07-18 16:18:28 -0500 (Wed, 18 Jul
> 2007) $
> by $Author: jft $, in revision $Rev: 17 $.
> It can be found at $HeadURL:
> file:///home/jft/my_repository/trunk/hello.c $
> $Id: hello.c 17 2007-07-18 21:18:28Z jft $
>
> */
>
> - - -
>
> Not what I expected - thought I'd find the file with its original name
> - hello.c.
>
> Suggestions?
>
> Thanks,
> Jim
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Aug 10 02:48:51 2007

This is an archived mail posted to the Subversion Users mailing list.