dm76
dm76

Reputation: 4240

problems moving a directory from one SVN repository to another

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

Upvotes: 1

Views: 599

Answers (2)

dm76
dm76

Reputation: 4240

see Avi's comments on the question for answer

Upvotes: 1

lucas1000001
lucas1000001

Reputation: 2750

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

Upvotes: 0

Related Questions