[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: How to do annotate

From: Daniel Berlin <dberlin_at_dberlin.org>
Date: 2002-08-13 16:29:44 CEST

> Realize, however, that CVS has these same problems, just on a lesser scale
> (because the granularity of it's diff is larger, and it's diff algorithm
> doesn't do self-similarity). If it decides that the best way to represent
> your change is to delete the first 3000 lines, and add 6000 lines to the
> front in it's place, annotate will show you as having changed those 6000
> lines, when you've only added 3000.

Bad example, of course, unless it's diff algorithm does something stupid
(since if you've only added 3000 lines, the other 3000 shouldn't be different), but
the point still stands: If it's diff algorithm doesn't produce perfect
results (which it doesn't), then the output of cvs annotate can't always
be correct, or even necessarily close to it at all.

CVS doesn't perform annotate based off anything but the diff ops (I
checked), so it's output is only as good as the diff ops it produced. If
they match reality, you get nice annotate results. If they are a bit
weird, your annotate output is a bit weird.

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Aug 13 16:30:15 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.