On Tuesday 26 September 2006 07:56, Peter Samuelson wrote:
> [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.
I don't think that will help.
> 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.)
What about the use-case
cp -a foo1 foo2
(edit foo1)
(find that changes are bad)
mv foo2 foo1
That wouldn't change the data, but the inode.
I believe that scenario has about the same usage probability as yours, given
that foo1 and foo2 have to have the same size :-)
Regards,
Phil
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Sep 27 07:43:38 2006