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

RE: Cosmetic bug: svn diff -rBASE:HEAD vs -rHEAD:BASE

From: Dale Worley <dworley_at_pingtel.com>
Date: 2005-03-21 15:55:30 CET

> From: Jonas Berlin [mailto:xkr47@outerspace.dyndns.org]
>
> Let's say I have a repository with one file "somefile" that
> in revision 1
> has only one line "hello" and in revision 2 also a second
> line "goodbye".
>
> I check it out, getting revision 2:
>
> $ svn co foo
>
> Then I go back in time
>
> $ svn up -r 1
>
> and do
>
> $ svn diff -rHEAD:BASE
>
> I get:
>
> Index: foo/somefile
> ===================================================================
> --- foo/somefile (revision 2)
> +++ foo/somefile (working copy)
> @@ -0,2 +0,1 @@
> + hello
> -goodbye

And even that is incorrect, as the headers should read:

> ===================================================================
> --- foo/somefile (revision 2)
> +++ foo/somefile (revision 1)

since the diff is against BASE, not the WC.

Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Mar 21 16:19:26 2005

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