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

Re: Caching text-size in the entries file

From: Peter Samuelson <peter_at_p12n.org>
Date: 2006-09-26 07:56:12 CEST

[Erik Huelsmann]
> I started working on a patch to record the size of the (unedited)
> working copy file in the entries file. Using 1 stat() call and this
> value, we can detect whether the working copy file has changed,
> without the need to detranslate.

If you're adding fields to the entries file anyway, with the aim of
independence from mtimes, I suggest an inode number field too. (Yes,
apr makes an inode number available on win32 as well as unix). The
idea is to require the inode number to match, as well as the mtime,
when deciding to skip the file compare.

This prevents a misunderstanding with 'svn update foo1 foo2; mv foo1
foo2'. (The 'svn update' will give foo1 and foo2 approximately the
same mtime, and 'mv' does not change it, so at present this will not
detect that foo2 has changed.)

Received on Tue Sep 26 07:56:24 2006

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

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