You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Erik Logtenberg <er...@fmf.nl> on 2003/02/04 11:10:23 UTC

[bug] w32 client tries to diff newly added files

Hi all,

I stumbled upon some strange behaviour in the W32 client. I downloaded the 
latest binary build today (version 0.17.1 (r4503), compiled Jan 23 2003, 
00:00:57).
I tried to import a Visual Basic project in svn, which worked fine. Then I 
found out, that adding the .bas and .frm files wasn't enough, but I also 
had to add the .frx files for VB to work.
So i did a "svn add foobar.frx" That worked fine, svn said:
"A (bin)   foobar.frx" so it also detected that the .frx file is binary, 
which is quite true unfortunately (stupid VB).
So then I tried a "svn status", which detected my .vbw (workspace file) 
had been modified ('M'), and that the .frx file had been added ('A'). Also 
it detected no information could be found about all the other .frx files 
that I had already copied to the source directory, but had not yet added 
to svn ('?').
Then I gave an 'svn diff' command, which resulted in svn trying to diff 
the newly added .frx file. (Ofcourse) that failed (diff it to what?), 
resulting in the error:

C:\svn\test\ctpalm\src>\svn\svn diff
Index: FrmSplash.frx
===================================================================
Binary files FrmSplash.frx      (working copy) and FrmSplash.frx        
(working
 copy) differ
svn: Error calling external program
svn: C:\Cygwin\bin\diff.exe returned 2

I did not tell svn explicitly to diff 'FrmSplash.frx', but when i do (svn 
diff FrmSplash.frx), I get the exact same error.

I asked Sander about this, and he suggested it might be a bug, hence this 
bugreport :)

Kind regards,

Erik Logtenberg.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [bug] w32 client tries to diff newly added files

Posted by Ben Collins-Sussman <su...@collab.net>.
Erik Logtenberg <er...@fmf.nl> writes:

> C:\svn\test\ctpalm\src>\svn\svn diff
> Index: FrmSplash.frx
> ===================================================================
> Binary files FrmSplash.frx      (working copy) and FrmSplash.frx        
> (working
>  copy) differ
> svn: Error calling external program
> svn: C:\Cygwin\bin\diff.exe returned 2

Yes, it's a known bug.  We shouldn't be trying to invoke 'diff' on a
file that svn thinks is binary.

Here's the bug, scheduled for 0.21:

  http://subversion.tigris.org/issues/show_bug.cgi?id=1019


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org