[p4] getting the last changes from a spec depot item

G Barthelemy gb.perforce at googlemail.com
Fri Oct 3 10:09:35 PDT 2008


On Fri, Oct 3, 2008 at 5:23 PM, Michael Delaney <mdelaney at upromise.com> wrote:
> I am actually looking to get the difference version of the file that may
> have changed on a day.
>
> Along the lines of 'p4 filelog -m 20 //spec/protect.p4s' which tell me
>        ... #118 default change edit on 2008/10/03
>        ... #117 default change edit on 2008/10/03
>        ... #116 default change edit on 2008/10/03
> then I can then parse the data and run p4 diff2 -u <file1> <file2>
> which in turn generated
> --- //spec/protect.p4s  2008/10/03 08:34:49
> +++ //spec/protect.p4s  2008/10/02 15:07:57
> @@ -96,9 +96,6 @@
>        <FILE DATA>

Ah fair enough, I thought you were looking for a way around having to
parse the output of p4 filelog.

Then in this case, how about using annotate ? That would show you what
changed when, and it supports a version range specifier:

p4 annotate -qa //spec/protect.p4s at 2008/10/02,2008/10/03



More information about the perforce-user mailing list