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

Re: How to compare with the previous version.

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2006-09-06 22:58:13 CEST

On 9/4/06, Ryan Schmidt <ryan-2006c@ryandesign.com> wrote:
>
> On Sep 4, 2006, at 16:37, Zsolt wrote:
>
> > I use svn diff from an application. Unfortunately only the current
> > revision
> > number is available (for example 8). How do I have to use svn diff to
> > compare the current version (for example 8) to the previously
> > committed
> > version (that might be 7 or 6 etc.).
>
> You can use something like "svn log --limit 2" to determine the
> previous revision number.

Or in a working copy you can just do:

svn diff -r BASE:PREV file

That won't work with a URL though.

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Sep 6 23:17:58 2006

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.