[p4] Stupid question - p4 describe with Unix diff summary output

David Weintraub qazwart at gmail.com
Thu Mar 8 12:57:06 PST 2007


In diff, a "chunk" is the group of lines that was operated on. For
example, let's say first five lines were changed. This is five lines,
but one "chunk". If a file had the first five lines changed, then
lines 20 to 24 changed, we can say that two chunks were changed, but
10 lines.

So,

> deleted 34 chunks 560 lines

means that 34 separate sets of changes were deleted, and these 34 sets
of changes consisted of 560 lines.

Not too sure what:

> changed 6 chunks 56 / 6 lines

means. "changed 6 chunks" means that six separate places in the
program were changed. I am not too sure what "56 / 6" means. Maybe 56
lines were changed in 6 different places? Would that make sense?


On 3/8/07, Brad Holt <brad.holt at autodesk.com> wrote:
> Real quick.  This will probably be pretty obvious to you Unix types...
> In the output from "p4 describe -dws change", I was just wondering how
> the "changed" line: is supposed to read.  In this case what does the "56
> / 6 lines" mean.  I've looked about in p4 docs and the net for an easy
> answer, but have not found one.
>
>
>
>
>
> ==== //depot/somefile#31 (text) ====
>
>
>
> add 0 chunks 0 lines
>
> deleted 34 chunks 560 lines
>
> changed 6 chunks 56 / 6 lines
>
>
>
>
>
> This is all for a line counting script.  And don't start telling me
> about how it is not a good metric.  It's not my idea, you're preaching
> to the choir.
>
> _______________________________________________
> perforce-user mailing list  -  perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
>


-- 
--
David Weintraub
qazwart at gmail.com


More information about the perforce-user mailing list