[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: Dale Worley <dworley_at_pingtel.com>
Date: 2004-12-20 20:57:57 CET

-----Original Message-----
From: Guillaume Chazarain [mailto:guichaz@yahoo.fr]

I have some doubt about the behaviour of "svn annotate", hopefully
someone can enlighten me.

Is this assertion true ?
    When "svn annotate" outputs a line with: $REV $USER $LINE
    it means that $REV is the biggest number so that "diff -r$((REV -
1)):$REV"
    outputs a line containing "+$LINE"
-----------------------------

No.

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.

But why would you expect that to be true?

The underlying problem is that line numbers are transient things, the number
of a particular line of information changes when changes are done to other
parts of a file, and so a line's number will change all the time.

Dale

---------------------------------------------------------------------
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:00:15 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.