Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Moving svn working copy to another computer

I'm in the process of moving from an old laptop to a new one.

Am I able to just move my client copy of the svn repository from the old laptop to the new? Note that it has files in it that I'm not able to commit yet.

So effectively I want to move \\old-laptop\c$\myDev to become \\new-laptop\c$\myDev

Is this possible?

(I've searched for similar answers but I think they all refered to moving folders within a repository or moving the server repository.)

like image 277
cagcowboy Avatar asked Jun 24 '10 12:06

cagcowboy


People also ask

Can I move svn folder to another location?

Moving files and folders select the files or directories you want to move. right drag them to the new location inside the working copy. release the right mouse button. in the popup menu select Context Menu → SVN Move versioned files here.

How do I move my TortoiseSVN repository?

If you are using TortoiseSVN (and I'm sure there's a command line tool for this as well, but I'm using Tortoise), you can simply right-click on your existing working copy folder and select TortoiseSVN –> Relocate. In the dialog that comes up, enter the new location of the repository, and click OK.

What is svn relocate?

The first svn relocate syntax allows you to update one or more working copies by what essentially amounts to a find-and-replace within the repository root URLs recorded in those working copies. Subversion will replace the initial substring FROM-PREFIX with the string TO-PREFIX in those URLs.


2 Answers

Yes, that's perfectly fine. It might break if you install an older version of svn/Tortoise on the new computer than you were using on the old (an earlier minor version, i.e. 1.4.xx not 1.6.xx), but assuming you set up the new laptop with the latest Tortoise it'll all just work.

I'm not 100% sure if there are line ending problems moving your working-copies between Windows and Linux, though, but doesn't sound like you're doing that.

Alternatively, you could create a temporary branch and commit your work-in-progress to that? Then you'd be sure of not losing it.

like image 93
Rup Avatar answered Sep 28 '22 18:09

Rup


Yes, you can. Even if you are still afraid of losing something you can copy first, not move, and check if everything is in one piece.

like image 25
dmedvinsky Avatar answered Sep 28 '22 20:09

dmedvinsky