SVN load ./myNewRepo < ./myOldRepo.dump -- Can't open file 'myNewRepo/format'?
Asked Answered
N

1

13

I'm trying to migrate an old repository (let's call it myOldRepo) to a new repository (myNewRepo).

I've got an svndump of the old repo, myOldRepo.dump. I've checked out my new repository, myNewRepo. Both are in the same directory. I'm trying to use the following command to load the old repo dump into the new repo:

svnadmin load ./myNewRepo < ./myOldRepo.svndump

This gives the following error:

svnadmin: Can't open file 'myNewRepo/format': No such file or directory

I've been using SVN for a long time, and I haven't seen a format file in any of my repositories. What is this format that is expected in myNewRepo?

I also tried creating an empty format file (touch format) in the myNewRepo directory. Then, when I do the svnadmin load command, I get the following:

svnadmin: Can't read file 'myNewRepo/format': End of file found

I've seen posts that are similar to this, but I haven't yet found a post that quite answers my question.

Nucleotide answered 21/8, 2012 at 18:38 Comment(0)
N
32

You need to load the dump directly into the repository, not a subfolder. You have to specify the path to the repository, not the checked out working copy. Try this:

svnadmin create ./myNewRepo
svnadmin load ./myNewRepo < ./myOldRepo.svndump

This should do the trick..

Nimrod answered 21/8, 2012 at 20:44 Comment(3)
I'm not using a locally-created repository. myNewRepo is hosted on assembla.com. What should I do to get the svndump into myNewRepo?Nucleotide
Aha, it looks like assembla.com has an in the web GUI. More info: forum.assembla.com/forums/2/topics/…Nucleotide
@solvingPuzzles, you can download a dump of your repository via the command svnrdump, provided that you have a recent enough svn. Take precautions regarding space, as svn repo dumps are usually quite large. (They get much smaller if you import them to git, if you want that).Actualize

© 2022 - 2024 — McMap. All rights reserved.