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

Re: svn diff -r BASE:HEAD upside down in diff titles?

From: Bob Proulx <bob_at_proulx.com>
Date: 2005-09-06 17:38:19 CEST

Madan U Sreenivasan wrote:
> Bob Proulx wrote:
> > svn diff -r 1:2
> > Index: testfile
> > ===================================================================
> > --- testfile (revision 0)
> > +++ testfile (revision 2)
> > @@ -0,0 +1,2 @@
> > +#!/usr/bin/env ruby
> > +# A ruby script.
>
> Am wondering why a revision 0 is coming into the picture...

I believe the answer is that it is just how new files are encoded.
The file is a new file. It did not exist in any previous revision.
The earliest possible revision is revision 0 so that is used to
represent the start of new files. The revision 2 is where the file
came into being. I see revision 0 used with regards to new files.

But take that with caution as I am the one asking the original
question! :-)

Bob

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Sep 6 17:40:10 2005

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.