Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you search the text of changelist descriptions in Perforce?

Tags:

perforce

On occasion, I find myself wanting to search the text of changelist descriptions in Perforce. There doesn't appear to be a way to do this in P4V. I can do it by redirecting the output of the changes command to a file...

p4 changes -l > p4changes.txt 

...(the -l switch tells it to dump the full text of the changelist descriptions) and then searching the file, but this is rather cumbersome. Has anyone found a better way?

like image 953
raven Avatar asked Sep 25 '08 15:09

raven


People also ask

How do I search for a file in P4V?

Go to Search > Find File. The Find File tab opens in the right pane. On the Find File tab in the right pane, under Search in, enter the directory path you want to search. You can drag and drop the file path from the Depot or Workspace Tree in the Tree pane.

How do I change the description of CL in perforce?

If you don't want to do this via command-line, you can edit a changelist description in P4V. Open the changelist (right-click, "View Changelist"), and there's an "Edit" button at the bottom which makes the Description field editable, allowing you to fix a typo or confusing description for a changelist.

What is a Changelist in perforce?

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 is p4 describe?

p4 describe displays the details of one or more changelists. For each changelist, the output includes the changelist number, the changelist creator, the client workspace name, the date the changelist was created, and the changelist description. This command also works with openable stream specifications.


1 Answers

When the submitted changelist pane has focus, a CTRL+F lets you do an arbitrary text search, which includes changelist descriptions.

The only limitation is that it searches just those changelists that have been fetched from the server, so you may need to up the number retrieved. This is done via the "Number of changelists, jobs, branch mappings or labels to fetch at a time" setting which can be found by navigating to Edit->Preferences->Server Data.

like image 194
Greg Whitfield Avatar answered Sep 21 '22 09:09

Greg Whitfield