Chazz
Chazz

Reputation: 461

Put P4 move operation in a non default changelist

I'm trying to do a p4 move to retain the perforce history. P4 moves created a delete/add operation in my default changelist. The documentation assures me that p4 move will retain history via an 'integration record'.

Now I want to submit the p4 move (delete/add) operation part of a changelist. How do I make sure that Perforce will do the move properly rather then delete/add as currently indicated by my changelist and lose the history? Can I see if the 'activation record' will created when the changelist is submitted?

Upvotes: 4

Views: 1245

Answers (3)

Bohdan
Bohdan

Reputation: 17203

P4 creates 2 changes for move:

move/add and move/delete

You can commit those and both will be in the changelist.

Upvotes: 0

Peter G.
Peter G.

Reputation: 15114

I have no idea how to query for a pending move operation.

If I don't know what operation is pending but I know that it should be a move and it is vital for me that the submit record be a move, then I would revert the files in question and again call p4 move on them.

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

Upvotes: 1

user100766
user100766

Reputation:

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).

Upvotes: 4

Related Questions