You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Dirk Schenkewitz <sc...@docomolab-euro.com> on 2006/06/09 15:49:01 UTC

Re: Changes in small binary files are not detected by svn client

On Wednesday, 31. May 2006 21:02, Eric Hanchrow wrote:
> >>>>> "Martin" == Martin Rakhmanov <ra...@gmail.com> writes:
>
>     Martin> Hello Not sure that this is a bug, but...  When I work
>     Martin> with small binary files SVN 1.3.1 is unable to determine
>     Martin> that the file was changed in my working copy.
>
>     Martin> I am running svn, version 1.3.1 (r19032) compiled Mar 30
>     Martin> 2006, 02:41:28 on Windows Server 2003.
>
> Take a look at these mailing-list threads, and see if one applies to you:
>
> http://thread.gmane.org/gmane.comp.version-control.subversion.devel/48427/f
>ocus=48470
> http://thread.gmane.org/gmane.comp.version-control.subversion.devel/63243/f
>ocus=63251

Oh, that. Subversion does not consider a file as changed unless it sees a 
change in the mod-time. :-( This bug should have been fixed long ago.

At least, PLEASE make it an installation option or compile-time option.

How it should be is described here:
http://article.gmane.org/gmane.comp.version-control.subversion.user/31810

Note the date:  2005-05-27 12:43:11 GMT - more than one year ago.

It's simply unbearable that correct-behavior-in-all-cases is sacrificed for 
speed.

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

Re: Changes in small binary files are not detected by svn client

Posted by Wolfgang Rohdewald <wo...@rohdewald.de>.
On Friday 09 June 2006 17:49, Dirk Schenkewitz wrote:
> How it should be is described here:
> http://article.gmane.org/gmane.comp.version-control.subversion.user/31810

it recommends

   if (timestamp has changed)
      return CHANGED; // because at least the timestamp changed
   else if (filesize has changed)
      return CHANGED; // obviously...
   else // timestamp and filesize are unchanged, now make sure:
      compare byte-by-byte.

if your working copy contains 1000 files and you edit 1 of them,
999 files would have to be byte compared. This is not
acceptable. Especially if some of them are things like ISO
images.

always_force_byte_by_byte_compare with default NO seems to be 
acceptable to me.


-- 
Wolfgang

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