John Smith
John Smith

Reputation: 12807

Merge two subversion repositories

I have a sad situation where my subversion repository got accidentally corrupted. Now I have two repositories and I'd like to merge into one

The first one has histories 1-20,24-207,235-312 The second has histories 1-257,

How can I merge these into one repo going 1-312?

These are otherwise identical repositories because one is a backup of the other. I'm using svn 1.4.4

Upvotes: 2

Views: 372

Answers (1)

blahdiblah
blahdiblah

Reputation: 34031

Essentially the process will be:
From the corrupt repo:

svnadmin dump -r258:312 > dumpfile

In the dated but uncorrupted repo:

svnadmin load < dumpfile

At which point the uncorrupted repo will have everything.

See svnadmin dump and svnadmin load for more information and potential tweaks/tuning to make the process smoother.

Upvotes: 2

Related Questions