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

Re: RE: Copy/Move/Rename Failing

From: Rob Wilkerson <r.d.wilkerson_at_gmail.com>
Date: 2006-09-07 14:29:34 CEST

On 9/7/06, Rob Hubbard <Rob.Hubbard@celoxica.com> wrote:
> Well, yes and no. You could do that, but
> svn mv old_name new_name
> *should* also work.

Yeah, that's what I thought.

> You *should* be able to do this in a working copy. Working locally is always preferable to working directly on the repository, as you can test your changes before you commit them. In addition, if that rename is going to be in conjunction with other changes (such as changing relative paths in makefile or for included files) then it would be preferable to have all those changes in a single change set and single commit.

I spent most of yesterday trying to make it happen in my working copy
for just that reason. When it came down to it, though, I had to get
it done and move on so I took the path suggested by Sivakumar.

> SVN will (or should) never destroy information, even in your working copy. Perhaps you are seeing a result of that. For example, reverting an added file (without history) only reverts the act of adding, but does not delete the file. I'm not sure what is the problem in your case.
>
> Could you (Rob) show the commands you're giving and the responses from SVN? Perhaps you could provide a little more detail, preferably a cut down demonstration of the behaviour you're seeing. If you could demonstrate the problem with just a few files and directories, it might be clearer. Someone on the mailing list might then be able to provide more help...

Since it's already been done, the best I can do is paste the example I
pasted to another mailing list. In this example, I had moved past
move/rename and was just trying the copy step all by itself to see
whether I could just get that far.

In the error messages reported, note that the path "server\mod\..." is
the destination path so it's brand spanking new. No other process
should have any sort of lock on it.

E:\path\to\parent\directory >svn cp core server
svn: Can't remove
'server\mod\modules\semod_reports\classes\.svn\tmp\reportcol.cfm.2.tmp'
svn: Can't remove file
'server\mod\modules\semod_reports\classes\.svn\tmp\reportcol.cfm.2.
tmp': The system cannot find the file specified.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Sep 7 14:31:15 2006

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