Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to revert a particular line in a file when using SVN?

I am working on a Ruby on Rails project and I have made lot of changes on a particular file.

Now I want to revert changes in some of the lines in that file.

Is it possible to revert those lines one by one in SVN?

like image 874
webster Avatar asked Dec 26 '14 07:12

webster


1 Answers

This is not possible by Subversion commands. You need an external diff tool, such as beyond compare or gvimdiff or others. IDEs also have this option. For example Eclipse and IntelliJ for Java, Pycharm for Python have this feature.

I don't what IDE you use for Ruby on Rails, if it's any decent it should have this feature. You could try IntelliJ community edition, it seems to have a plugin for Ruby on Rails. Even without the Ruby on Rails integration, you should be able to open the Compare with Latest Repository Version menu, see the two versions side by side and easily select the changes to keep or undo.

like image 180
janos Avatar answered Oct 21 '22 09:10

janos