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

Math on PREV and HEAD?

From: Sir Woody Hackswell <sir.woody_at_hackswell.com>
Date: 2003-10-22 15:22:30 CEST

It's REALLY nice to be able to diff the head against the prev version, as in
this example:

[woody@sir trunk]$ svn diff -rPREV:HEAD Makefile.in
Index: Makefile.in
===================================================================
--- Makefile.in (revision 7383)
+++ Makefile.in (revision 7473)
<<SNIP>>

SVN is smart enough to find the version before the current one. But let's
say I want to diff the current version against TWO revisions ago? or three?
Can this be done? Since I don't know the repository revision at the 2nd to
last version of the file, I'm lost without some method of abstracting, no?

I'd like something like: -r HEAD-2:HEAD
Which gives me the diff of 2 versions ago against current.

So... HEAD == Last changed (current) version
      PREV == HEAD-1 == Previous version
      HEAD-2 == One more back... etc, etc, ad nauseum.

Thanks!

-Richard Balint

-----
Oh Oracle wise:
Why do Haikus make me sad?
I don't understand.

Sir.Woody_at_Hackswell.com http://sir.woody.hackswell.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Oct 22 15:25:34 2003

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.