Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TortoiseSVN - Undoing a Revert

I wanted to look at (and not modify) older versions of a few files in my repository, so I went and reverted those files. Now I'm trying to get those files back to the most recent version so that they match all the other files in my working copy, but when I updated the folder, nothing changes.

Is it possible to undo a revert? I copy and pasted the newest versions of those files elsewhere, so they're not completely lost, but I would think that there's an easier way than just moving those files back to the directory holding my working copy.

Thanks in advance.

like image 688
Emily Avatar asked Nov 28 '11 08:11

Emily


1 Answers

With SVN there's only the working copy on your local machine, and the repository on the server. By using revert you have replaced the contents of your local working copy with the contents from the server, and there is no other place where SVN keeps a copy of those files.

Depending on your IDE you might be able to restore your changes. Eclipse, for example keeps track of the local history of every file in your workspace.

But if you want to get version control that is much more flexible, take a look at Git or Mercurial.

like image 144
Robert Petermeier Avatar answered Sep 18 '22 21:09

Robert Petermeier