In Perforce, how do I get a list of scanned files?

How to get a list of files verified by users (including usernames) using P4V or P4?

I want to provide the location of the depot and look at the list of files located in this place (including subfolders) that were extracted.

+42
perforce
Sep 25 '08 at 13:06
source share
6 answers

From the command line:

p4 opened -a //depot/Your/Location/... 

... indicates that auxiliary folders should be included.

+30
Sep 25 '08 at 13:09
source share

Seeing that you also asked a question about P4V and only still had answers on the command line, this is what you do for P4V. The Pending panel gives you part of the path to what you want. Make sure that the "User" and "Workspace" filters are cleared, and you will get a list of all files grouped by the list of changes and client specifications. Not as clean as a direct list of files that you get when using the P4 command line, as suggested by Iain and Mark, but may help in some situations.

An alternative is to create a custom menu in P4V that uses one of the proposed command line solutions. For example:

  • Tools-> Manage Custom Tools
  • New
  • Call it something, for example. User Opening Files
  • Check "Add to relevant context menus"
  • In the "Application" field, go to p4.exe
  • In the arguments, enter open -a% D (the latter takes the selected depot path)
  • Check the box to run in the console.

I am sure you will need a little, if necessary, to filter the output.

+20
Sep 25 '08 at 13:47
source share

You can also limit the output of p4 as follows:

 p4 opened -C <client-spec> //depot/... 

to get a list of files open in this client specification

 p4 opened //depot/... 

will give you a list of files opened by the current P4USER

+19
Sep 25 '08 at 13:16
source share

If you want to find a specific user:

 p4 opened -u the_user_name 

If you want to find a specific Changelist:

 p4 opened -u the_user_name -c cl_number 
+6
Jul 27 '12 at 7:15
source share

I just want to specify something about command line arguments.

It is important to add " / ... " after the folder you want to view, because it tells perforce to do this recursively.

So, I tried this at the beginning:

 p4 opened -a //myP4Path/dev_project 

What doesn't work until I did this:

 p4 opened -a //myP4Path/dev_project/... 
+5
Mar 01 2018-12-12T00:
source share

In p4v: try renaming the top directory. You will receive a warning and a list of registered files with usernames.

+1
Mar 20 '16 at 12:08
source share



All Articles