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

Re: [TSVN] Changed binary not shown up as changed

From: SteveKing <steveking_at_gmx.ch>
Date: 2005-04-01 21:57:05 CEST

Sebastian Armbrust wrote:
> Today my collegue had to change one of my scripts stored in the
> subversion repository. (v.1.1.3 Subersion and TortoiseSVN)
> but afterwards it didn't worked anymore. I figured out that a change to
> a binary file wasn't checked in to the repository. So i changed the
> file again but tortoisesvn didn't noticed it as a change.
>
> So my question is: How does Tortoise checks for changes in binary files
> (we are talking about a 6 KB .exe file) or is there a possibility to
> force tortoise to change the file in the repository? One single changed
> character in a text based file was instantly marked as changed.
>
> The file we are speaking of is a dialog from the nsis distro which i
> edited with the resource hacker. So ca. 20-50 were changed.

To be exact: TortoiseSVN doesn't do this checks. The Subversion library
(which TSVN uses) does this.

Now, Subversion checks for modifications like this:
- compare the 'last write time' of the file with the base. If equal
   then 'not modified' is assumed.
- if they're different, the file size is checked. If they're different,
   then the file is 'modified'.
- if they're equal, then a byte-by-byte comparison is done of the file
   with its base to check if it was modified.

So I guess your program reset's the 'last write time' of the file for
some reason - throw that program away because it violates every rule
there is about modifying files!

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Fri Apr 1 22:00:50 2005

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.