Reputation: 3
I made some changes in few files (lets say F1, F2, F3) in workspace A. I shelved these changes (shelved ID#1) (no issues so far) and unshelved these changes to new workspace B (No issues). After unshelving in B, I made few more changes in files (F2, F3, F4 and F5) in workspace B. Now I want to move changes from workspace B to a new workspace C. Here I am facing problem.
How can I make my all changes (all 5 files) from workspace B to workspace C. More specifically, how I can I create fresh Shelve from workspace B which contains all the changes, not just the changes made post unshelving.
Hope somebody can help me with this quickly.
Upvotes: -1
Views: 739
Reputation: 16389
To take all the files you currently have open in workspace B, and make a fresh shelf with all those changes, do:
p4 reopen -c default //...
p4 shelve
The first command takes all your opened files, and associates them with the default changelist.
The second command takes all files currently opened in the default changelist, and makes a new shelf with those changes.
Upvotes: 1