Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Restoring a subversion repository to workcopy revision

My subversion VM died the other day (host hardware melted) and I had to restore a backed up copy of the vmware server image. The restore went well and the VM is running again on a new host.

The problem I have is that my restored repository is at revision 60 but my working copy on my PC is at 66. When I try and commit my working copy I get the following error message.

svn: Commit failed (details follow):
svn: No such revision 61

What is the best way to force this commit and bring subversion up to the same revision as my working copy?

like image 377
tinny Avatar asked Jun 07 '10 03:06

tinny


1 Answers

I don't think your old working copy can "teach" the new SVN server about the missing revisions (61-66).

I would suggest:

  1. Check out new working copy
  2. SVN EXPORT your old working copy onto the new working copy, thereby updating the files with your changes
  3. SVN COMMIT the changes

At this point the new SVN server will be up-to-date.

like image 112
William Leara Avatar answered Oct 02 '22 15:10

William Leara