Primarily shelve changes should be built on top of git stashes and git stash in repository view could list also other shelve-sets generated on top of the repository.
I suppose Shelve changes should open git stash create view and allow to delegate to the current shelve changes support if user wishes that (e.g. git stashes do not allow to create a patch from only a subset of modifications, it will always stash all modified files).
On the other hand when unshelving, the menu should allow both shelve-sets and stashed changes.
Created attachment 151209 [details]
*** Bug 246076 has been marked as a duplicate of this bug. ***
last fix: http://hg.netbeans.org/core-main/rev/c0caf2d0cead - shelve changes is primarily implemented with git stashes for git vcs
Integrated into 'main-silver', will be available in build *201501130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Ondrej Vrabec <firstname.lastname@example.org>
Log: #249458 - Integrate git stashes with shelve changes
Adding shelve menu to the git popup menu.