Friday 5 November 2010

Put P4 move operation in a non default changelist

You can use p4 opened to see the status of the opened files in your changelist. The following sequence of commands illustrates what happens during a 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, the creation of a new pending changelist didn't change the status of the opened files at all, it pertains the move/add + move/delete action. If this is not what you were looking for, please edit your question.

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


View the original article here

No comments:

Post a Comment