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

Re: Detection of file modification

From: Erik Huelsmann <ehuels_at_gmail.com>
Date: 2007-06-22 14:23:37 CEST

On 6/22/07, Simon Large <simon.tortoisesvn@googlemail.com> wrote:
> 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.

Yup.

> 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.

It does on trunk (to be released in 1.5).

> 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.

Well, you could circumvent that problem by only providing the
templates and no default :-) Copying it will mean file-creation, which
*is* detected.

> 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.

bye,

Erik.

---------------------------------------------------------------------
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:23:25 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.