How to add file to hidden changes list in Perforce?

I edited the file and then postponed the changes to it with the modified X change list. Now I am editing another file. How to add this file to an existing X deferred change list or create a new change list containing changes in both files?

Thanks.

+7
source share
2 answers

You don't need unshelve as @Dennis suggests, although this may be one way to do this.

For an undisclosed file that you want to add to an existing shelf, simply open that file in the existing shelf change summary. For example, if your shelf is identified by changelog # 1729, then do

 p4 edit -c 1729 forgot_to_shelve.py 

Then set it aside:

 p4 shelve -c 1729 

If it turns out that the file already exists on the shelf, but you want to update it, then, as usual, add -f :

 p4 shelve -c 1729 -f 

For the file that is currently open that you want to add to your existing shelf, you must first reopen save this file in your existing change shelf before postponing it as above:

 p4 reopen -c 1729 forgot_to_shelve_and_currently_opened.py p4 shelve -c 1729 

Link:

To add a file to a previously existing shelf, the file must first be open in the list of changes in the shelf; use p4 reopen to move an open file from one change list to another.

p4 shelve // โ€‹โ€‹Perforce 2013.3: Command Reference

+10
source

You can unshelve the change list for your client, add the file, and then shelve again. It will save the same list of changes as in the change lists, only with the numbering (if you want to keep the chronological order ) to submit.

Basically, think of a shelf with a modified list of changes as a local pending list of changes that you just postponed for a moment.

+2
source

All Articles