[p4] File data
John Hopkins
johnh at ca.sophos.com
Tue Oct 30 13:47:58 PDT 2007
> Date: Tue, 30 Oct 2007 09:59:23 -0700
> From: "Dix, John" <JDix at MedManageSystems.com>
> Subject: [p4] File data
> To: <perforce-user at perforce.com>
> Message-ID:
> <AE6186D040FF7545960D34B39F63653FDFB594 at titanium.medmanagesystems.local>
>
> Content-Type: text/plain; charset="us-ascii"
>
> Hello all,
>
> I contacted perforce tech support about this and got no help. They
> offered several "workarounds" but none of them actually provided the
> information I needed.
>
> What I am looking for is a way to list ALL the files a specific user has
> modified in a branch. Seems like it should be built in functionality.
> But I have tried the following commands and none have yielded any
> results:
>
>
> p4 -u User-A files //depot/...
>
> p4 -u User-A filelog //depot /...
>
> p4 filelog //depot/... | findstr User-A
>
>
> Is there a cmdline way of doing this or do I need to write Python code
> that extracts the files from a "p4 -G changes -u User-A" data?
Hi, John. This should do what you want:
p4 changes -u [username] ... | \
awk '{print $2}' | \
p4 -ztag -x- describe -s | \
perl -wne 'm/^\.\.\. depotFile\d+ (.+)/ and print "$1\n"' | \
sort | uniq
hth,
John
--
John Hopkins
Build Engineer, Sophos
Sophos - security and control
More information about the perforce-user
mailing list