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

Re: Potential Bug: Changed files not being marked

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2006-06-13 20:15:49 CEST

David Haynes wrote:
> This may not be a fault in Tortoise after all.
> When I edit the file and re-save it, the modify time is not changed.
> I assume that Tortoise is using the modify time for marking.
>
> Curiouser and curiouser.
> The modify time is not being changed when I edit with wordpad or Zend
> but *is* being changed when I edit with notepad and Tortoise is changing
> the icon as I would expect.
>
> Looks like this may be some sort of XP bug.

I don't think it's an XP bug. Some applications really don't change the
'last write time' of a file (ok, they change it back the way it was before).
Subversion first compares the 'last-write-time's of files, if they don't
match, it checks the file size. If those match, it starts doing a
byte-by-byte comparison of the file with its BASE.
So, as long as the last-write-time doesn't change, Subversion assumes
the file hasn't changed at all and doesn't check further.

One thing that could prevent updating the 'last-write-time' of a file
are shared network resources, i.e. if your working copy is not local on
your harddrive but on a mounted network share. Then, to reduce the
network load, the last-write-time is not updated immediately but only in
bigger time chunks (e.g. every 30/60 minutes).

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Tue Jun 13 20:16:00 2006

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

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