0

I 'm looking for a P4 command which does a wildcard search across P4 dirs of interest to me

Eg: Our P4 repo looks like as below:

//depot/chip/block/foo_a1/...

//depot/chip/block/1_foo_a2/...

//depot/chip/block/2_foo_a3/...

//depot/chip/block/nop_a1/...

//depot/chip/block/1_nop_a2/...

I'm looking for a command that looks for all files with '*.vhdl' submitted by user 'tom' in P4 repos '//depot/chip/block/*foo*/...' I 'm not interested in other repos.

Burhan Ali
  • 2,258
  • 1
  • 28
  • 38
Mike
  • 1,205
  • 3
  • 12
  • 21

1 Answers1

1
p4 -Ztag -F "//depot/chip/block/*foo*/...@=%change%" changes -u tom "//depot/chip/block/*foo*/..." | p4 -x - files
Samwise
  • 68,105
  • 3
  • 30
  • 44
  • Can you elaborate the intent for -Ztag and -F. The command doesn't seem to work. All I need is to find certain types of files in certain P4 repos checked in by a certain user. When executed the above command, all I get on stdout is 'p4: No match' – Mike Apr 23 '16 at 02:52
  • I'm using P4 in Linux. Looks like in the above command the '*' is not resolved – Mike Apr 23 '16 at 02:58
  • Your shell might require you to quote arguments that contain "*". I'll add the double quotes to my answer so you can see where they go. – Samwise Apr 24 '16 at 06:40