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

Re: two file time questions

From: Andrew Thompson <subversionuser_at_aktzero.com>
Date: 2005-05-25 23:55:03 CEST

Ben Collins-Sussman wrote:
> On May 25, 2005, at 11:41 AM, chris lueders wrote:
>> i guess svn uses the file time to speed up it's diff process. fine.
>> but why doesn't it use the file size as well?
> It does use the filesize, but only later on.

Is there anything wrong with touch'ing your whole working copy?

Will subversion reset the times after you commit? (not that that's a bad

> The algorithm is:
> if (timestamp hasn't changed)
> return NO_CHANGE;
> else if (filesize has changed)
> return CHANGED;
> else
> compare byte-by-byte.

Will anything bad happen if we return CHANGED from here even if nothing
is actually changed?

Which logic would be used?

if (force flag is set) return CHANGED
if (force flag is set) compare byte-by-byte

>> furthermore, i'd like to have a way of forcing a full check,
>> regardless of file time, if any of my files changed.
> I like that idea, sounds like a nice enhancement to 'svn status'.


Andrew Thompson
Interested in a hosted SVN repository? Email me, let's talk...
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed May 25 23:56:40 2005

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

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