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

Re: Relocate fails with "Relocate can only change the repository part of an URL"

From: Ryan Schmidt <subversion-2009b_at_ryandesign.com>
Date: Wed, 14 Oct 2009 03:58:02 -0500

Hi Marc. First, let's keep the discussion on the mailing list by using
the Reply All function when you reply.

On Oct 14, 2009, at 02:43, Marc Bakker wrote:

>> Can't help you with your TortoiseSVN usability complains; please
>> direct them
>> to the TortoiseSVN mailing list. We do not support that product here.
>>
>>> SVN came up with the error above. What do I have to do in
>>> order to commit to the repository in te new location?
>>
>> All you should have to do is "svn switch --relocate", as you're
>> trying to
>> do. The error message suggests to me you are trying to change more
>> of the
>> URL than just the part that points to the repository. If you need
>> help
>> debugging that, please show us the old and new URLs and the old and
>> new
>> repository locations on disk.
>
> Thanks for the answer.
>
> Let me try again: My old repository is in
>
> file:///K:/Data/Subversion Repositories/CMS
>
> I copy it to
>
> E:\Backups\Xtrn20GDsk\DATA\Subversion Repositories
>
> Next I go to the location of my working copy and do
>
> svn --relocate file E:\Backups\Xtrn20GDsk\DATA\Subversion Repositories
>
> Then I do
>
> svn --commit
>
> I get:
>
> svn: Commit failed (details follow):
> svn: Directory 'D:\www\wwwroot\CMS\ColdBox Platform Utilities\.svn'
> containing w
> orking copy admin area is missing
>
> Looks like the relocate is not working?

It looks like there is a lot of confusion here. :)

* There is no such thing as "svn --relocate". The command is called
"svn switch --relocate".

* There is no such thing as "svn --commit". The command is called "svn
commit".

* You do not need to commit after using "svn switch --relocate"; it
simply modifies your working copy so that instead of thinking the
repository is over there, it now thinks the repository is over here.

Let's start over, and let me see if I can interpret what you said
above. You have a directory "Subversion Repositories". It contains at
least one repository ("CMS") but might contain more. It used to be in
K:\Data and now you moved it to E:\Backups\Xtrn20GDsk\DATA. Is that
correct so far?

You have a working copy at D:\www\wwwroot\CMS. I presume the URL that
working copy was checked out from is file:///K:/Data/Subversion
Repositories/CMS. You would like to relocate this working copy so it
can find your newly moved repository.

To do this, go into the directory D:\www\wwwroot\CMS and run this
command:

svn switch --relocate file:///K:/Data file:///E:/Backups/Xtrn20GDsk/DATA

That's it. The working copy should have been relocated. Repeat for any
other working copies you may have.

This assumes your working copies have not already been mis-relocated
to some other place by your prior attempts...

Note: I could have given longer URLs to the relocate command, but you
can get by with just specifying the beginning part of the URL, the
part that differs.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2407455

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-10-14 10:59:36 CEST

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