"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