Reputation: 926
My SVN repository was installed on a server and this server got down, I have three working copies and all of them made some changes and not commit them to the base What to do in this case, please help me
Upvotes: 7
Views: 1315
Reputation: 51214
Does this mean you have lost the repository?
In that case (if you have no backups at all) I guess the simplest thing to do would be:
Repeat steps 2. to 5. for all working copies you have. During step 5., you will need to merge things manually. Take care to add any unversioned files, if needed.
You will have lost all the previous revision history, but no working data should be lost this way, provided that you have all the working copies.
Upvotes: 9
Reputation: 328556
Do you have a backup of the repository? If yes, load it with svnadmin
somewhere and then commit the changes to this new place. Use svn switch
to point your working copies to the new server.
If no, then you have lost the history of your project and there is no way to get it back.
All you can do is to create a new repository somewhere and commit the three individual copies one after the other to it. You may have to delete all .svn
directories in your working copies to do that.
Use a DVCS like Mercurial or Git to avoid situations like that (and lots of other problems).
Upvotes: 1
Reputation: 22766
Make patches in each working copy, using svn diff > a.patch
, then apply on one working copy patches from other two: patch -p0 < a.patch
.
Next time, use some DVCS, something like Git or Mercurial :)
Upvotes: 3