tags:

views:

75

answers:

2

Hi all,

I'm trying to move a directory (trunk/project/subproject) from a repository rep_a to a newly created repository rep_b

Following the instructions I've seen in ttp://stackoverflow.com/questions/417726/...,

I did this:

svnadmin dump my_repositories/rep_a > ./rep_a.dump
svndumpfilter include trunk/project/subproject --drop-empty-revs --renumber-revs --preserve-revprops < ./rep_a.dump > ./rep_a_filtered.dump
svnadmin load my_repositories/rep_b < ./rep_a_filtered.dump

However, the last command fails with this message:

<<<< Started new transaction, based on original revision 1
      * adding path : trunk/project/subproject ...svnadmin: File not found: transaction
      '3-a', path 'trunk/project/subproject'

That error message is rather criptic to me. Any idea what it means ?

I thought perhaps it means that it's looking for a trunk/project/subproject in rep_b so I tried added them manually (i.e. via a add/commit) and then tried the same command again. This doesn't work either and gives me this:

File already exists: filesystem 'rep_b\db', transaction....

any clues ? what am I doing wrong here ?

David

A: 

If you don't mind losing the history from the first repo, just apply the following command to your checked out repo1 tree :

find <repo1> -name ".svn" | xargs rm -rf

This will remove all .svn files from all directories in the checked out tree and avoid the second error.

Of course this is assuming you are using cygwin / unix.

Cheers

lucas1000001
Clearly, the poster is trying to move the directory, along with its SVN history, otherwise he could have just exported from the first repo, and imported into the second.
Avi
keeping the history is why I'm going through this... otherwise, I could just copy the stuff in the new repository and do a normal add/commit.
DavidM
@lucas1000001, by the way you can use 'svn export' to copy a working copy without the all the .svn
DavidM
+1  A: 

see Avi's comments on the question for answer

DavidM