Subversion repository maintenance
From: Nirmalya Lahiri <nirmalyalahiri_at_yahoo.com>
Date: Wed, 23 Dec 2009 17:51:19 -0800 (PST)
I have used subversion in my company for version management. We maintain our own server for that purpose. Yesterday I have faced a typical problem. Somehow the last 2 (two) revision of that repository was corrupted after one of our team member committed his work, and the repository was locked after then. No one was able to "update","commit","checkout" from those two revision after then.
On that situation, I have decided to remove those two revision from repository. But I was not able to do so. After searching net, I found only one solution, the steps are....
1) Take a back of repository (except those corrupted revision).
2) Recreate repository.
3) Restore repository from backup.
My problem was solved by these steps. But my question is, if a revision in the middle of the repository may corrupt, then how can I remove that revision from repository? Because in "svnadmin dump" command I can specify only one range of revision number ; not multiple. Take an example..
List of revision in repository....
In my case only 136 and 137 revision was corrupted. I have used the command "svnadmin dump -r 1:135" to take backup. But in some case if 76 revision will corrupt then how can I take backup of two range (1-75 and 77-137). And also how can I restore them?
Anyone have any idea?
নির্মাল্য লাহিড়ী [Nirmalya Lahiri]
This is an archived mail posted to the Subversion Users mailing list.