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

Detection of file modification

From: Simon Large <simon.tortoisesvn_at_googlemail.com>
Date: 2007-06-22 02:14:50 CEST

Hi folks,

I noticed this while trying to automate test repo creation.

In summary, add a file to the repository.
Replace the file in the WC with one of the same date but different size.
svn status detects no change.

Admittedly this is unlikely to happen in normal use - these files were
reclaimed from conflict files in an earlier test, which is why they
have the same timestamps. Nonetheless, I thought SVN checked both
timestamp AND size.

One (obscure) use case I can think of is where a distribution offers
several configs and requires you to copy the header you want over the
default. Combine that with the old Microsoft practice of putting the
same date on every file in a distribution and you have a reproduction.

It certainly requires a workaround in my automated test because the
test suite files are versioned and on checkout/update they will almost
certainly have identical timestamps.

Tested using svn 1.4.3

Windows reproduction recipe attached.

Simon

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Fri Jun 22 14:19:29 2007

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

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