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

Re: Can no longer move files after relocate

From: Hendrik Maryns <qwizv9b02_at_sneakemail.com>
Date: Wed, 23 Jan 2008 16:17:22 +0100

Mark Phippard schreef:
> On Jan 23, 2008 4:52 AM, Hendrik Maryns <qwizv9b02_at_sneakemail.com> wrote:
>> Hendrik Maryns schreef:
>>> Hendrik Maryns schreef:
>>>> Hendrik Maryns schreef:
>>>>> Hi,
>>>>>
>>>>> I recently moved my svn:// repository from localhost to a machine in the
>>>>> same network, called coxorange. In the SVN repository exploring
>>>>> perspective, I relocated the repo svn://localhost to svn://coxorange.
>>>>>
>>>>> Things went fine, I was able to commit and update, make a tag.
>>>>>
>>>>> Today, I decided to split a Java package in two packages. I made the
>>>>> new package, which was initially marked with a '?'. I then tried to
>>>>> move the classes over to the package, but Eclipse gives the error
>>>>> message
>>>>>
>>>>> An exception has been caught while processing the refactorying 'Move'.
>>>>>
>>>>> Reason: Problems encountered while moving resources.
>>>>>
>>>>> At the same time, the svn console shows the following:
>>>>>
>>>>> move
>>>>> /home/hendrik/workspace/MSO/de/uni_tuebingen/sfb/lichtenstein/binarytrees/Query.java
>>>>>
>>>>> /home/hendrik/workspace/MSO/de/uni_tuebingen/sfb/lichtenstein/UI/Query.java
>>>>>
>>>>> svn: Cannot copy to
>>>>> '/home/hendrik/workspace/MSO/de/uni_tuebingen/sfb/lichtenstein/UI', as
>>>>> it is not from repository 'svn://coxorange/'; it is from
>>>>> 'svn://coxorange'
>>>>>
>>>>> I tried adding the / at the end of the repo name, but this didn't help,
>>>>> instead it split up the repo in three different ones for each project,
>>>>> but the error message stays the same.
>>>>>
>>>>> I'd be pleased if someone helped me out of this.
>>>> Still nobody?
>>>>
>>>> I had another problem to which I accidentally found the 'solution': I
>>>> was unable to commit changes to the directory
>>>> /home/hendrik/workspace/MSO/de/uni_tuebingen/sfb/lichtenstein/binarytrees/.
>>>> Turns out it had an uncommitted property change for svn:ignore. By
>>>> deleting this property change, I was able to commit normally.
>>>> This probably is a bug, but I do not really know how to phrase it,
>>>> maybe one of the committers here can pick it up?
>>>>
>>>> However, the moving of the file is still not possible, still with the
>>>> same error.
>>> This seems to be a Subversion bug, since I get the same error on the
>>> command line. Cross-posting and follow-up to subversion-user, hope to
>>> get an answer there.
>> No one? I found this: http://svnkit.com/tracker/view.php?id=176, but it
>> seems to be Subclipse-specific, where I get it on the command-line also.
>
> If you did the Relocate option using Subclipse (and SVNKit) I imagine
> it is possible that SVNKit rewrote your WC using the incorrect URL's
> mentioned in that issue, and that is why the command line then gives
> the same error.

I guess that is indeed the case.

> Try doing the relocate using the command line or change Subclipse to
> use JavaHL before your next relocate.

I tried to, but didn’t manage:
- Using JavaHL in Eclipse, I tried to disconnect all projects from
svn://coxorange, then removed the location and added it again. Then
reconnected the project, still the same error occurs. Trying to
relocate from svn://coxorange to svn://coxorange/ gives

switch --relocate svn://coxorange svn://coxorange
/home/hendrik/workspace/MSO
     Inter-repository relocation not allowed
svn: 'svn://coxorange/' is not the root of the repository

So it seems javaHL also removes the trailing /.

- If I use SVNKit in Eclipse, and try to relocate from svn://coxorange
to svn://coxorange/, it changes the repository location svn://coxorange
to svn://coxorange/trunk/MSO, where MSO is the project that is attached
to that repo. If there are more projects, it splits it up into a
location for each project.
Moving the file still does not work with the same error message.

- From the command line I tried the following:
  svn switch --relocate svn://coxorange svn://coxorange/
svn: 'svn://coxorange/' is not the root of the repository

Exchanging the slashes gives the same error.
So no luck.

Do you have some concrete tips on how to get this fixed? I’m afraid
I’ll have to dive into the svn bookkeeping files and do some hand-editing.

The SVNKit bug tracker claims this bug is fixed, maybe it isn’t
integrated in Subclipse yet?

H.

-- 
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html

Received on 2008-01-23 16:18:12 CET

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.