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

380 views
Skip to first unread message

marc

unread,
Oct 13, 2009, 6:34:46 PM10/13/09
to us...@subversion.tigris.org
Hi,

I use tortoise (v1.6.5) to manage my SVN (v1.6.5) repositories (on
XP). Hope someone can help me though...

I copied my repository to another location on my computer. I needed
the external harddisk it was on for other purposes. After trying to
commit to the old location I got an error message and found out I had
to do a relocate. After right-clicking the top-level folder (which
strangely misses the SVN icon, but the folders inside still show them)
and entering the new repository location over the old one and clicking
OK (actually twice if you count the warning about doing a switch
instead) SVN came up with the error above. What do I have to do in
order to commit to the repository in te new location?

Thanks,

Marc

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

To unsubscribe from this discussion, e-mail: [users-un...@subversion.tigris.org].

Ryan Schmidt

unread,
Oct 13, 2009, 7:37:51 PM10/13/09
to marc, us...@subversion.tigris.org
On Oct 13, 2009, at 17:34, marc wrote:

> I use tortoise (v1.6.5) to manage my SVN (v1.6.5) repositories (on
> XP). Hope someone can help me though...
>
> I copied my repository to another location on my computer. I needed
> the external harddisk it was on for other purposes. After trying to
> commit to the old location I got an error message and found out I had
> to do a relocate. After right-clicking the top-level folder (which
> strangely misses the SVN icon, but the folders inside still show them)
> and entering the new repository location over the old one and clicking
> OK (actually twice if you count the warning about doing a switch
> instead)

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.

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

Ryan Schmidt

unread,
Oct 14, 2009, 4:58:02 AM10/14/09
to Marc Bakker, Subversion Users
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

marc

unread,
Oct 14, 2009, 4:15:05 PM10/14/09
to us...@subversion.tigris.org
Hi Ryan,

Thanks for the post and sorry for not answering on the list. The
repository was indeed moved as you guessed and after issuing the
command you provided SVN has no trouble finding my copied repository.

Thanks again!

Marc

On Oct 14, 10:58 am, Ryan Schmidt <subversion-20...@ryandesign.com>
wrote:

> ------------------------------------------------------http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessa...
>
> To unsubscribe from this discussion, e-mail: [users-unsubscr...@subversion.tigris.org].

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

Reply all
Reply to author
Forward
0 new messages