How can I filter the submitted list by multiple users in Perforce?

How can I filter the Presented view by multiple users in perforce? I want to see only a few (4-5?) People in the Presented view. There is a filtering function, but the filter does not accept multiple users. So, can I specify multiple users in the Presented view in perforce?

+6
source share
4 answers

You're right, there seems to be no way to do this in p4v (GUI) or p4 (CLI). It is best to convey this as a function request for excellent level support.

+2
source

I created a shell script power that may be useful. It filters a specific user, date, and you can select the last number of records that you want to perform a search (this speeds up the return of the command). The result is shown in the power shell grid window, which helps sort the result records. Feel free to change the variables for your requirements:

$date1 = Get-Date -UFormat "%Y/%m/%d" #today #$date1 = "2013/09/11" #other day $users = "user1|user2|user3" $title = "Submitted changes on: "+$date1+" and users: "+$users $maxLines = 100 Write-host -foregroundcolor 'cyan' $title $out = (p4 changes -t -s submitted -m 512 | select-string -Pattern $users | select-string -Pattern $date1) $out | Select-Object LineNumber,Line,Matches | Out-GridView -Title $title -PassThru 

Ikhsan

+1
source

Ok ... Just my two cents:

I wanted to filter the submitted list to avoid changing the change lists from other projects on the same P4 server. At first I tried to filter by user, but no luck, like you.

But! Finally, I got what I wanted using file filtering . Thus, only my project is visible. I find this very useful, as it will show any activity from someone that I did not expect from my project. This event is better than filtering by name. In the small case, at least.

It does not answer the question directly, but it fixes the problem I encountered :)

+1
source

Swipe output to another filter, for example grep. For instance,

 p4 changes -s submitted | egrep "^[^@]* (tom|dick|harry)@" 

You may need to change the regex to suit your output format. ^ [^ @] * prevents false positives such as the tom@ in the summary.

0
source

Source: https://habr.com/ru/post/908116/


All Articles