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

bug when diffing

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Sat, 24 Jan 2009 19:53:07 +0100

Hi,

Just spent the last four hours trying to find the bug in the lib_diff
but failed miserably. So I'm reporting the issue here hoping someone
else is more familiar with that part of the code.

How to reproduce the problem:

* get the attached zip file
* extract file1.txt and file2.txt
  (the files are identical but the first line)

$ svnadmin create repo
$ svn co file://repo/ wc
$ cd wc
$ mv file1.txt wc/file1.txt
$ svn add file1.txt
$ svn ci -m ""
$ mv -f file2.txt file1.txt
$ svn diff file1.txt
.. one line different shown

But:
$ svn diff file1.txt -x --ignore-eol-style

shows a line diff on every 128kByte mark in the file!

I first thought the shown diffs were random, but they're in fact
*exactly* at 128k boundaries.

This happens with a trunk build from yesterday as well as with an 1.5.4
client.

Stefan

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1047363

  • application/x-zip-compressed attachment: files.zip
Received on 2009-01-24 19:53:31 CET

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.