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

Delete empty changelists

Open unwiredben opened this issue 5 years ago • 4 comments

I'd like a menu item to delete a changelist that has no files shelved or locally changed. In my workflow, I often commit changes from Swarm, then have to go and delete the local changelist, and right now, this requires me to delete the CL from the command line after remembering it's CL number from the VSCode window.

unwiredben avatar Sep 24 '20 21:09 unwiredben

Hi, if you use the revert changelist command it also attempts to delete the changelist at the same time Though this can fail if there are jobs attached or shelved files for example.

This was inherited from the original extension - I do think it could be more clear, for example if the changelist is empty we could change revert changelist to delete changelist..

P.s I also added the "copy changelist number" command very recently to make remembering the changelist number easier ;)

mjcrouch avatar Sep 24 '20 21:09 mjcrouch

I didn't know that! I'll try that out next time.

unwiredben avatar Sep 24 '20 22:09 unwiredben