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

Re: Odd "diff" behavior

From: Karl Heinz Marbaise <khmarbaise_at_gmx.de>
Date: Mon, 24 Mar 2008 11:19:51 +0100

Hi Stefan,
> stsp_at_ted [wc] $ svn cp a b
> A b
> stsp_at_ted [wc] $ svn diff
> stsp_at_ted [wc] $ svn st
> A + b
> stsp_at_ted [wc] $ echo c > c
> stsp_at_ted [wc] $ svn add c
> A c

Have you ever tried this:

find -type f | xargs ls -al
than you see things like this:
.... .svn/entries

> Why isn't the diff for b shown?
> Was this a deliberate design decision?
And this is reason why svn diff will only print information for "c",
cause it's building the difference between the pristine copy (.svn) and
your working area. You see the missing "c" under .svn/text-base ?
So in the case of a copied file (b) it won't print out anything, cause
there is no difference between pristine copy and the working area.

On the other hand what kind of difference should it print out, cause it
copied from an existing file...so in consequence it should calculate the
difference between the target of the copy operation and the source but
this should print nothing at all...cause there is no difference between
the source and the destination...

Kind regards
Karl Heinz Marbaise

SoftwareEntwicklung Beratung Schulung    Tel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl Heinz Marbaise        ICQ#: 135949029
Hauptstrasse 177                         USt.IdNr: DE191347579
52146 Würselen                           http://www.soebes.de
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-03-24 11:20:19 CET

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