You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Martin Rakhmanov <ra...@gmail.com> on 2006/05/31 15:21:53 UTC

Changes in small binary files are not detected by svn client

Hello

Not sure that this is a bug, but... When I work with small binary files SVN
1.3.1 is unable to determine that the file was changed in my working copy.
To verify that just add three-byte file with the following content (shown in
hex):

0xFF 0xCC 0x00

Then make a change - say change last byte to 0x99 in hex editor. Then run
svn ci - nothing happens (no check in). svn diff also does not show
anything.

I am running svn, version 1.3.1 (r19032) compiled Mar 30 2006, 02:41:28 on
Windows Server 2003.

Thanks
Martin Rakhmanov

---------------------------------------------------------------------
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

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

Posted by Dirk Schenkewitz <sc...@docomolab-euro.com>.
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 Eric Hanchrow <of...@blarg.net>.
>>>>> "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/focus=48470
http://thread.gmane.org/gmane.comp.version-control.subversion.devel/63243/focus=63251

-- 
I ... don't want programming to be "really interesting" any more than
I want my toaster to be "really interesting".  I want my toaster to
get the job done and I do not want to hear about exciting new
tungesten alloys in the heating wires nor do I want to subscribe to
Toaster Today magazine.
        -- Daniel Weinreb <DL...@attbi.com>, ll1 mailing list

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