Put the move operation P4 in the non-default change list

I am trying to do p4 move to save perforce history. Moving P4 created a delete / add operation in my default change list. The documentation assures me that the p4 transition will save the story through the "integration record".

Now I want to send part of the p4 move operation (delete / add) in the change list. How can I make sure that Perforce will correctly move and then delete / add as indicated in my change list and lose history? Can I see if an activation record will be created when the change list is sent?

+4
source share
3 answers

You can use p4 opened to view the status of open files in your change list. The following sequence of commands illustrates what happens during p4 move .

 $ p4 open icons.zip $ p4 opened //full/depot/path/to/icons.zip#1 - edit default change (ubinary) $ p4 move icons.zip foo.zip //full/depot/path/to/foo.zip#1 - moved from //full/depot/path/to/icons.zip#1 $ p4 opened //full/depot/path/to/foo.zip#1 - move/add default change (ubinary) //full/depot/path/to/icons.zip#1 - move/delete default change (ubinary) $ p4 changelist Change 350425 created with 2 open file(s). $ p4 opened //full/depot/path/to/foo.zip#1 - move/add change 350425 (ubinary) //full/depot/path/to/icons.zip#1 - move/delete change 350425 (ubinary) 

As you can see, creating a new pending list of changes did not change the status of open files at all, it refers to the move/add + move/delete action. If this is not what you were looking for, edit your question.

Note: the above has been tested with P4D / 2009.2 (Server) and p4 / 2010.1 (Client).

+4
source

I do not know how to request a pending move operation.

If I don’t know which operation is under consideration, but I know that this should be a step, and it is vital for me that the send record is a move, then I would return the files in question and call p4 move again on them.

Update: I see in another answer that p4 opened reports pending moves.

+1
source

P4 creates 2 changes to move:

move / add and move / delete

You can commit those and both will be on the change list.

0
source

All Articles