vscode-perforce icon indicating copy to clipboard operation
vscode-perforce copied to clipboard

Support shelving and unshelving the default changlist

Open girivs82 opened this issue 4 years ago • 7 comments

I often shelve changelists when moving to something else and unshelve them to resume work. Currently I do that via command line. Would be great if that is one of the options that the UI supports.

Describe the solution you'd like In the source control view, against each file, an option to shelve is provided. List of shelved files (only the ones relevant to the workspace) should populate below the default changelist tab(can be called "Shelved changelists") and we can browse through that to unshelve already shelved files.

Describe alternatives you've considered Manual via command line.

girivs82 avatar Jul 03 '21 14:07 girivs82

Hi - Thanks for posting - there is already support for shelved files. The shelved versions appear greyed out in the changelist view.

You can click this button to shelve a file (or right click on the file and choose shelve) - or you can shelve the whole changelist by right clicking on the changelist. You can choose whether to also revert the open changes at the same time or keep the open changes

image

If you aren't seeing shelved files, make sure you haven't checked the 'Hide Shelved Files' setting. You should also see changelists that only have shelved files as long as your setting for 'hide non workspace files' is not too restrictive.

Using the "Search changelists" view you can also find shelved changelists using the status filter

Screenshot 2021-07-03 at 16 06 34

mjcrouch avatar Jul 03 '21 15:07 mjcrouch

Note that you have to move the files to a new changelist before you can shelve them - maybe that's why you haven't seen it already! Might be a good feature to be able to create and shelve at the same time from the default changelist!

mjcrouch avatar Jul 03 '21 15:07 mjcrouch

Thanks for the quick response! Yes, that was exactly it. I was searching for it in the default changelist area. :-)

girivs82 avatar Jul 03 '21 15:07 girivs82

Should I close this or leave it open if you are interested in implementing the create/shelve from default changellist?

girivs82 avatar Jul 30 '21 07:07 girivs82

I'll leave it open for now to track the default changelist enhancement :)

mjcrouch avatar Aug 02 '21 10:08 mjcrouch

@mjcrouch - I can take a stab at this if you'd like.

allender avatar Aug 03 '21 13:08 allender

@allender you're welcome to have a go, I'm unlikely to do anything significant on the extension for now

mjcrouch avatar Aug 05 '21 22:08 mjcrouch