Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to revert SVN commit in PhpStorm

Tags:

svn

phpstorm

I made a SVN commit with a wrong message and the SVN server obviously does not support comment editing. So I thought I could generate a "revert" commit and then re-commit with the appropriate message.

Since I don't have any command line SVN client (I use PhpStorm SVN plugin), I'm wondering if it's somehow possible to generate this revert commit in PhpStorm.

like image 289
sdabet Avatar asked Apr 09 '15 07:04

sdabet


2 Answers

Another way to revert a commit that affects multiple files using the commit history:

  1. With one of the affected files open in the editor, show the file's commit history with VCS > Subversion > Show History (or any shortcut method)
  2. Right click the commit to be reverted and select Show All Affected Files
  3. Select all the files in the popup (there are no checkboxes but the files can still be selected)
  4. Click on the Revert Selected Changes icon on the topbar of the popup
  5. A dialog box will come up allowing you to put the changes into a new or existing change list, which you can then commit as usual
like image 125
lindon Avatar answered Sep 22 '22 18:09

lindon


Use Subversion->Show History to get a list of all the commits of the file. Right-click on the 2nd-to-last commit and select "Get" to copy that version into the editor. Then Commit this to revert to that previous version.

like image 27
Barmar Avatar answered Sep 21 '22 18:09

Barmar