bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lines modified in newly-added files


From: Neil Conway
Subject: Re: lines modified in newly-added files
Date: Mon, 21 Feb 2005 12:26:41 +1100

On Tue, 2005-02-15 at 12:41 +1100, Neil Conway wrote:
> I would like to see "lines: +3 0" associated with revision 1.1. It is
> possible to get the number of lines modified via a kludge (fetch the 1.1
> revision of the file and manually count the number of lines in it), but
> I think it would be reasonable for CVS to provide this information
> itself.

Any comments on this?

How about this revised behavior:

- a file addition is treated as adding the the number of lines in the
new file's content

- a file removal is treated as removing the number of lines that in the
old file's content, prior to deletion; this does _not_ include any bogus
"additions" due to keyword substitution in the deleted content

- re-adding a file is treated the same as an addition from scratch; we
only count the number of lines in the new content, not the diff between
the file's content prior to deletion and it's new content (this is on
contrast to CVS's present behavior, which does the latter)

The first bullet point is all that really matters to me; the rest is
just for the sake of consistency.

I realize there may be backward compatibility concerns; this would
naturally only be in the feature release series.

-Neil






reply via email to

[Prev in Thread] Current Thread [Next in Thread]