Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In perforce, how do I list source file of a pending integrate?

I have a pending changelist open with several integrated files. Is there a way to list where (perforce path and revision) these files were integrated from? I'd like to double check that they were integrate from the correct place before submitting.

like image 667
Tolli Avatar asked Feb 25 '14 16:02

Tolli


People also ask

How does p4 integrate work?

In its simplest form, p4 integrate -b branchname -s fromFile allows you to integrate files using the source/target mappings included in the branch view of branchname , but include only those source files that match the patterns specified by fromFile .

What is Perforce Changelist?

When you check out a file, Perforce adds information about the file to a changelist and changes the writable attribute of the file in your local workspace from read-only to read/write. A changelist defines a logical grouping of work across a set of files and folders.

What does p4 clean do?

Description. The p4 clean command takes the following actions when finding inconsistencies between files in a user's workspace and corresponding depot files: Files present in the workspace, but missing from the depot are deleted from the workspace. Files present in the depot, but missing from your workspace.

What does p4 reopen do?

p4 reopen has the following uses for a stream: To move an open stream from its current pending changelist to pending changelist changelist , use p4 reopen -So -c changelist. To move a stream to the default changelist, use p4 reopen -So -c default.


2 Answers

To list unresolved integrations, use 'p4 resolve -n'.

To list resolved but unsubmitted integrations, use 'p4 resolved'.

Since you mention you're getting ready to submit, you've probably already resolved the integrations, so use 'p4 resolved'.

like image 154
Bryan Pendleton Avatar answered Oct 19 '22 15:10

Bryan Pendleton


You can check if the file is a Lazy Copy (branched files are lazy copies). Run p4 fstat -Oc on the file and check the lbrFile output, it will show you from where this file was integrated.

Also take a look: http://answers.perforce.com/articles/KB_Article/How-to-Identify-a-Lazy-Copy-of-a-File

like image 36
Bruno Brs Avatar answered Oct 19 '22 15:10

Bruno Brs