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

Re: Bug with revisions?

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: 2004-07-15 21:43:51 CEST

"C. Michael Pilato" <cmpilato@collab.net> writes:

> Kasia Trapszo <ktrapszo@tickets.com> writes:
>
> > Wouldn't it be safer to hash the size & timestamp and use that instead?
> > I don't think that would affect performance significantly considering
> > both filesize and timestamp come from the inode.. but then this is
> > hardly my area of expertise..
>
> Hm. I like this idea. Why not propose it on the dev@ list?

Oh, wait. I just remembered why we don't do this already. Keyword
substitution/EOL translation. I think our full algorithm is:

   if timestamps not different:
       return no_diff
   if keywords or eol-style enabled:
       de-translate file to tmpfile
       if tmpfile size != basefile size:
           return diff
       if tmpfile and basefile differ bytewise:
          return diff
   if file size != basefile size:
       return diff
   if file and basefile differ bytewise:
       return diff
   return no_diff

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jul 15 21:45:23 2004

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.