[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: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-05-25 21:41:55 CEST

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.

The algorithm is:

   if (timestamp hasn't changed)
      return NO_CHANGE;
   else if (filesize has changed)
      return CHANGED;
   else
      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'.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed May 25 21:44:02 2005

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