You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "White, David (KWI C54)" <Da...@alcoa.com.au> on 2011/10/21 08:39:45 UTC

Local repository move

This may seem like a dumb question, but I cannot find out how to do
this.

 

I have several local repositories on a WinXP machine, and I want to move
them to another folder on the same machine, as part of renaming required
to assist migration to Win7.

 

I thought I needed to use something like

 

Svn switch -relocate "C:\Old Repository Location\Repository Name"
"C:\New Repository Location\Repository Name"

 

When I do this, I get the message "svn : '.' Is not a working copy"

 

Can someone tell me what I need to do?

 

Thanks,

 

David White
Principal Research Engineer | TDG

 

Alcoa World Alumina

t +61 8 9410 3402  f +61 8 9410 3197  m +61 (0) 432 877 949

Cockburn Road, Kwinana, Western Australia
PO Box 161, Kwinana WA 6966
www.alcoa.com.au <http://www.alcoa.com.au/>  

Sign up here
<http://www.alcoa.com/australia/en/news/community_enews/newsletter.asp>
to receive alcoa community e-news

The contents of this e-mail and any attachments may be confidential. Any
confidentiality is not waived or lost because this email has been sent
to you by mistake. If you have received this e-mail in error, please
notify the sender immediately, destroy any printed copies and delete the
email from your computer

 


Re: Local repository move

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Oct 21, 2011, at 04:03, White, David (KWI C54) wrote:

> I suppose if I can't get the relocate to work, I  could dump the repository and reload it into the new one.  

"relocate" has nothing to do with your repositories and everything to do with your working copies. You don't need to dump and load your repositories; it will have no effect on this problem. At worst, you just need to check out new working copies (though it should be possible to relocate the old ones, as you've been trying to do).



RE: Local repository move

Posted by "White, David (KWI C54)" <Da...@alcoa.com.au>.
Uli,
 
I am still using 1.6 becuase when I last checked, the Collabnet distribution of the Windows executables had not been updated to 1.7
 
The lack of %20 in the messages could reflect the fact that I had to copy the messages into the email - they were in a dialog box, and as a text email, I could not paste the image.
 
I'm not on my own machine at present - when I am, I'll try to make the move again, possibly manually putting the %20 in there.
 
I suppose if I can't get the relocate to work, I  could dump the repository and reload it into the new one.  
 
Thanks,
 
I'll let you know how I get on.
 
David
 

________________________________

From: Ulrich Eckhardt [mailto:ulrich.eckhardt@dominolaser.com]
Sent: Fri 21-Oct-11 16:02
To: users@subversion.apache.org
Subject: Re: Local repository move



Am 21.10.2011 09:41, schrieb White, David (KWI C54):
> My Repositories were originally in C:\DW and I want to move them to C:\Open\kwc54dw\DW
> I have copied the repository "AHEAProps Repository" to this new location

Since you are using file:// <file:///>  access, you need to tell each working copy
about the moved repository location.


> My working files were originally in C:\Dev and I have moved them to c:\open\kwc54dw\Dev

I assume with "working file" you mean "SVN working copy" (it's a bit
nitpicky, but better than misunderstanding). Anyhow, this is a second
change which is independent of the movement of the repository. In
general, you can move a working copy around as you like.


> When I try to do the switch from within TSVN:
>
> Command: Switch C:\Open\kwc54dw\Dev\AHEAProps to file:///C:/Open/kwc54dw/DW/AHEAProps Repository, Revision HEAD
> Error: 'file:///C:/DW/AHEAProps%20Repository'
> Error: is not the same repository as
> Error: 'file:///C:/Open/kwc54dw/DW/AHEAProps%20Repository'
> Finished!:
>
> If I try to use the Relocate command from TSVN, I get this message:
>
> "If seems you are trying to relocate your working copy to a different path inside the same repository.
> From: file:///C:/DW/AHEAProps Repository
> To: file:///C:/open/kwc54dw/DW/AHEAProps Repository
>
> A relocate is only needed if the path to a repository has changed.
> ... Improper use of relocate will corrupt your working copy!"

You shouldn't need any switch operation. In general, the URL of a
working copy consists of two parts, one is the location of the
repository, the other is the location inside the repository. If you move
the repository, you only need to change the former, which is achieved
using "svn switch --relocate" or since SVN 1.7 with "svn relocate".

In other words, your first switch operation should not be necessary
since you are not changing the path inside the repository. However, the
second relocate operation is necessary and I'm surprised it didn't work.
What strikes me there is that the space in the repository path was not
escaped using "%20" as it was in the switch operation. This could be a
bug in TSVN even.

You could try to create a new repository, check out a working copy and
then move that repository, avoiding paths with spaces on the way. If
that changes anything, you probably have discovered a bug. If you can
relocate your working copy using the commandline SVN client, then you
would also have shown that the bug is probably in TSVN.


BTW: It would be interesting to know if you are using 1.6 or the
just-released 1.7, because a few things concerning the handling of
working copies changed in that release. Also, if you are using 1.6 and
considering upgrading, I would wait for 1.7.1 which is supposed to fix a
few upgrade bugs.


Good luck!

Uli
**************************************************************************************
Domino Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
Visit our website at http://www.dominolaser.com <http://www.dominolaser.com/> 
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Domino Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************




Re: Local repository move

Posted by Ulrich Eckhardt <ul...@dominolaser.com>.
Am 21.10.2011 09:41, schrieb White, David (KWI C54):
> My Repositories were originally in C:\DW and I want to move them to C:\Open\kwc54dw\DW
> I have copied the repository "AHEAProps Repository" to this new location

Since you are using file:// access, you need to tell each working copy 
about the moved repository location.


> My working files were originally in C:\Dev and I have moved them to c:\open\kwc54dw\Dev

I assume with "working file" you mean "SVN working copy" (it's a bit 
nitpicky, but better than misunderstanding). Anyhow, this is a second 
change which is independent of the movement of the repository. In 
general, you can move a working copy around as you like.


> When I try to do the switch from within TSVN:
>
> Command: Switch C:\Open\kwc54dw\Dev\AHEAProps to file:///C:/Open/kwc54dw/DW/AHEAProps Repository, Revision HEAD
> Error: 'file:///C:/DW/AHEAProps%20Repository'
> Error: is not the same repository as
> Error: 'file:///C:/Open/kwc54dw/DW/AHEAProps%20Repository'
> Finished!:
>
> If I try to use the Relocate command from TSVN, I get this message:
>
> "If seems you are trying to relocate your working copy to a different path inside the same repository.
> From: file:///C:/DW/AHEAProps Repository
> To: file:///C:/open/kwc54dw/DW/AHEAProps Repository
>
> A relocate is only needed if the path to a repository has changed.
> ... Improper use of relocate will corrupt your working copy!"

You shouldn't need any switch operation. In general, the URL of a 
working copy consists of two parts, one is the location of the 
repository, the other is the location inside the repository. If you move 
the repository, you only need to change the former, which is achieved 
using "svn switch --relocate" or since SVN 1.7 with "svn relocate".

In other words, your first switch operation should not be necessary 
since you are not changing the path inside the repository. However, the 
second relocate operation is necessary and I'm surprised it didn't work. 
What strikes me there is that the space in the repository path was not 
escaped using "%20" as it was in the switch operation. This could be a 
bug in TSVN even.

You could try to create a new repository, check out a working copy and 
then move that repository, avoiding paths with spaces on the way. If 
that changes anything, you probably have discovered a bug. If you can 
relocate your working copy using the commandline SVN client, then you 
would also have shown that the bug is probably in TSVN.


BTW: It would be interesting to know if you are using 1.6 or the 
just-released 1.7, because a few things concerning the handling of 
working copies changed in that release. Also, if you are using 1.6 and 
considering upgrading, I would wait for 1.7.1 which is supposed to fix a 
few upgrade bugs.


Good luck!

Uli
**************************************************************************************
Domino Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
Visit our website at http://www.dominolaser.com
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Domino Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************


RE: Local repository move

Posted by "White, David (KWI C54)" <Da...@alcoa.com.au>.
Uli,

I'm not using Apache.  I do, however, have TortoiseSVN installed.

My Repositories were originally in C:\DW and I want to move them to C:\Open\kwc54dw\DW
I have copied the repository "AHEAProps Repository" to this new location

My working files were originally in C:\Dev and I have moved them to c:\open\kwc54dw\Dev

When I try to do the switch from within TSVN:

Command: Switch C:\Open\kwc54dw\Dev\AHEAProps to file:///C:/Open/kwc54dw/DW/AHEAProps Repository, Revision HEAD  
Error: 'file:///C:/DW/AHEAProps%20Repository'  
Error: is not the same repository as  
Error: 'file:///C:/Open/kwc54dw/DW/AHEAProps%20Repository'  
Finished!:

If I try to use the Relocate command from TSVN, I get this message:

"If seems you are trying to relocate your working copy to a different path inside the same repository.
From: file:///C:/DW/AHEAProps Repository
To: file:///C:/open/kwc54dw/DW/AHEAProps Repository

A relocate is only needed if the path to a repository has changed. ... Improper use of relocate will corrupt your working copy!"

Stuck now :-(  Thought I understood this, apparently not.

Thanks,

David



-----Original Message-----
From: Ulrich Eckhardt [mailto:ulrich.eckhardt@dominolaser.com] 
Sent: Friday, October 21, 2011 14:51
To: users@subversion.apache.org
Subject: Re: Local repository move

Am 21.10.2011 08:39, schrieb White, David (KWI C54):
> This may seem like a dumb question, but I cannot find out how to do
> this.

Make sure the repos are not accessed at the moment (turn off 
Apache/svnserve) and then just do a file-system move operation using 
your preferred file management utility.


> I thought I needed to use something like
>
> Svn switch -relocate "C:\Old Repository Location\Repository Name"
> "C:\New Repository Location\Repository Name"
>
> When I do this, I get the message "svn : '.' Is not a working copy"

Yes, you need to do that but on your working copies, not on the 
repositories. OTOH, if you are using any server for them, you only need 
to tell the server that they were moved. If the server still runs on the 
same machine/port then working copies don't need relocation.


Cheers!

Uli

**************************************************************************************
Domino Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
Visit our website at http://www.dominolaser.com
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Domino Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************


Re: Local repository move

Posted by Ulrich Eckhardt <ul...@dominolaser.com>.
Am 21.10.2011 08:39, schrieb White, David (KWI C54):
> This may seem like a dumb question, but I cannot find out how to do
> this.

Make sure the repos are not accessed at the moment (turn off 
Apache/svnserve) and then just do a file-system move operation using 
your preferred file management utility.


> I thought I needed to use something like
>
> Svn switch -relocate "C:\Old Repository Location\Repository Name"
> "C:\New Repository Location\Repository Name"
>
> When I do this, I get the message "svn : '.' Is not a working copy"

Yes, you need to do that but on your working copies, not on the 
repositories. OTOH, if you are using any server for them, you only need 
to tell the server that they were moved. If the server still runs on the 
same machine/port then working copies don't need relocation.


Cheers!

Uli

**************************************************************************************
Domino Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
Visit our website at http://www.dominolaser.com
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Domino Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************