[p4] getting the last changes from a spec depot item
Michael Delaney
mdelaney at upromise.com
Fri Oct 3 10:36:04 PDT 2008
I thought about that, but the output from annotate would require more
parsing and could be more prone to errors. It seems better just to
create the output from 'p4 diff2' which is easier for me to read.
-----Original Message-----
From: G Barthelemy [mailto:gb.perforce at googlemail.com]
Sent: Friday, October 03, 2008 1:10 PM
To: Michael Delaney
Cc: perforce-user at perforce.com
Subject: Re: [p4] getting the last changes from a spec depot item
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