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

RE: svn annotate question

From: Patrick Smears <patrick.smears_at_ensoft.co.uk>
Date: 2004-12-20 21:06:24 CET

> Consider adding lines 1 through 10 in rev 1.
>
> In rev 2, add a line at the beginning of the file.
>
> In rev 3, delete the first line of the file.
>
> Now, "svn annotate" will tell you that the current line 1 was added in rev
> 1. But the latest revision that added a line that was numbered 1 *in that
> revision* was rev 2.

I think that by "$LINE", Guillaume was referring to the _contents_ of the
line, rather than the line number. So in this example, if the original
file contains ten lines containing "line1" to "line10", and R2 adds (and
R3 removes) a line at the start containing "addedline", then Guillaume's
hypothesis is that the line containing "line1" will indeed be marked as
coming from R1, since that was the only revision that added a line
containing that string. (Possibly the example was confusing because the
content of each line was a number, which could all to easily be taken for
the number of that line!)

Patrick

-- 
The easy way to type accents in Windows: http://www.frkeys.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Dec 20 21:10:57 2004

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

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