On Mon, 23 Jan 2006 23:51:26 +0100 (Romance Standard Time) Michael Van Canneyt <[EMAIL PROTECTED]> wrote:
> > > On Mon, 23 Jan 2006, Mattias Gaertner wrote: > > > On Mon, 23 Jan 2006 17:18:36 -0500 > > Tony Maro <[EMAIL PROTECTED]> wrote: > > > > > Mattias Gaertner wrote: > > > > The files didn't changed on disk, so an automatic refresh would undo > > > > your current changes. > > > > > > > > At the moment the IDE does this: > > > > On saving/opening a file it retrieves the FileAge of the file. > > > > At several occassions it compares these file dates with the current > > > > file dates. > > > > If it changed it gives the user the choice. > > > > > > > It's odd, because both computers sync clocks from the same timeserver > > > - which is also located on my network. I've looked and the clocks > > > appear the same, so I assume it's something about going from Linux to > > > Windows over NFS that's making it look different. > > > > When the server and the client are not properly synchronized, the > > > > file dates differ (but not immediately because of the caches) and > > > > for the client it seems as if the file changed. > > > > We could extend the check to load the file and compare its content. > > > I'd think have it run the DIFF before deciding to pop up the dialog, > > > and if nothing appears, ignore the change? > > > > This means IO overhead. Especially on a network fs. That's why I didn't > > implement it. > > That is why I wouldn't recommend implementing it, either. > Imagine the IDE suddenly diffing all files in your project ! Right. But if no one comes up with a solution we should add this as an option. > WinCVS has the same problem. When we switch from winter DST to summer DST > all files on a NTFS directory structure, all files are marked as > 'locally changed'. It has probably something to do with NTFS using > universal time when storing filetimes. > (that is the explanation I read for the CVS phenomenon) > > I expect something similar is happening here. Mattias _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives