views:

80

answers:

1

Every once and a while IntelliJ starts getting really slow and the only thing I can do to fix things is to do a fresh checkout and create a new IntelliJ project. Recently I noticed that items I shelved were no longer listed under the Changes tab.

I found all of the .patch files but would like to restore them to the list of changes in the IDE.

I'm fine with an answer along the lines of "before you blow away your old project, copy xxx and yyy from some file and paste that stuff into the new project". Keeping the shelf comments would be a bonus.

+1  A: 

The VCS I use, SVN, allows for simple creation of patches and also allows patches to be applied to a codebase almost effortlessly. If you already have the .patch files, it should be as simple as using the Version Control -> Apply Patch menu option from within IntelliJ to apply each change-set manually. You should also be able to create a single .patch file from the codebase with your original change-set which will allow you to apply a single patch to bring over your change-set.

Gweebz
I've got the .patch files and I can apply them, no problem. I'd like to be able to migrate all of the .patch files along with the comments I made when I created those shelved items. Without the comments, it's going to be very hard for me to figure out what all of the .patch files are.
Chris Williams
The .patch file standard does not save comments inside of the file anywhere. IntelliJ does allow you to enter a comment when you attempt to create a patch but it tries to use this as the patch file's name. For example, using a comment of "My comment" will create a file called "My_comment.patch". If you rename this file, the comment is lost forever.
Gweebz
Accepting because the comment is part of the name of the patch file itself (as @Gweebz indicated, above). That's what I was trying to get to through this post.. I thought the filename that was being used was part of the comment, not the full comment.
Chris Williams