How Do I Move Shelf Back To The Profile?

Answered

I noticed in the latest revision this being "fixed".
Shelve changes to project dir  http://youtrack.jetbrains.com/issue/IDEA-113222.

I regularly cleanup my local working copy using a script that deletes all unversioned or ignored files.
This deleted my shelf without me realising it.
I could modify the script but I would rather have the option of chosing where to keep the shelf.

Can you add an option to move it back to the profile directory so that both camps are happy please.

Thanks.

10 comments

I opened an item in YouTrack as I just lost a whole bunch of shelved changes again.
https://youtrack.jetbrains.com/issue/IDEA-132033

0

Since this just happened again (!), I'll make a note for my own benefit that the issue has been fixed and that there is now a setting:

Version Control - Shelf - Change Shelves Location.

However, it seems to be project specific without a global option.

Also, when I click the Help button I get the following error:

0

You need to make this a global setting!
I just re-imported a gradle project and the process deleted my shelf and a ton of work!

You owe me several licences based on how much time this "feature" has cost me!

0

This is so annoying!

The project setup got broken so I deleted the .idea folder and re-imported but only after realised that I hadn't moved the shelf for this particular project.

I've now lost another weeks work due to this stupid change!

0

4 years and you can't put an option to relocate a directory in the settings???

0

> re-imported but only after realised that I hadn't moved the shelf for this particular project.

Check Local history, it still should have shelve patches.

> 4 years and you can't put an option to relocate a directory in the settings

The option is there, it is just not global. And default shelve was moved to profile dir per requests from other users. TBH, looking at reports,e.g https://youtrack.jetbrains.com/issue/IDEA-132033 and https://youtrack.jetbrains.com/issue/IDEA-184967, it does not appear to be a critical issue.

This part is a part of community code, so a patch/pull request is welcome. Or you could just change it for yourself if you want. 

https://github.com/JetBrains/intellij-community/tree/master/platform/vcs-impl/src/com/intellij/openapi/vcs/configurable/ShelfProjectConfigurationPanel.java

0

> TBH, looking at reports,e.g https://youtrack.jetbrains.com/issue/IDEA-132033 and https://youtrack.jetbrains.com/issue/IDEA-184967, it does not appear to be a critical issue.

Which of the comments makes you say that? This one?

Rose Toomey  commented 12 May 2017 18:36
+100 reimporting my project to clean up an unrelated project glitch should not eradicate my entire shelf! Thank goodness for Mac time machine, I was able to restore it.
 
 
 
0

> Which of the comments makes you say that

The fact that there is only one that comment, and yours. After the option to store shelf in a different folder was added, seems it is not affecting a lot of users.

True, it is project-level setting and this can cause issues, but it thanks to the Local history, shelve is not lost. That is why the issue does not have a high priority.

A patch is welcome.

 

 

0

Refreshing gradle was not picking up a new module.

Neither was restarting IDEA.

So I closed IDEA and rm -rf .idea and imported the project and it picked it up.

 

However, only afterwards did I realise that I had shelved changes and it wasn't set in a different location for this project.

The changes are there in there in the local history bu there is no easy way to get all of them out into a single changelist, especially if you arent even sure which files were included in it.

0

Please sign in to leave a comment.