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

Re: svn status: does not notice changed file if timestamp of "new" file is older

From: <subversion_at_lclark.net>
Date: 2002-11-12 20:39:45 CET

Hi,
I have been using SVN internally for a few months. Here is a recipe for
reproducing this error:

1. I already have a WC in WC1 with a file called browse.html with a modified
date of 11/8/2002.
2. Check out a fresh working copy in another directory: WC2. This gives
all the files a modified date of 11/12/2002.
3. Copy browse.html from WC1 to WC2. The modified date stays the same (11/8/2002).
4. svn st and svn st -u both return no changes to WC2.

System details:
WinXP
svn version .14.3
networked repository (not that it would make much difference, right?).

I haven't tried this on our UNIX boxes and I haven't upgraded to the latest
SVN either. Let me know if there are any questions.
Landon

Ben Collins-Sussman wrote:

>solo turn <soloturn99@yahoo.com> writes:
>
>>maybe the date comparison logic is screwed? which file is it in?
>
>
>I told you the name of the routine already: svn_wc_text_modified_p().
>Take a read of that whole section in libsvn_wc/questions.c.
>
>>i think you can only use date comparison for speeding up the
>>comparison, but never judge the contents of a file by "this file has
>>newer date than the other".
>
>
>You can make one simple judgement: that equal timestamps implies no
>change. If the timestamps are unequal, you can't assume anything.
>
>The basic logic is:
>
> if (entry timestamp == working-file timestamp)
> return NOT_MODIFIED;
> else if (text-base filesize != working filesize)
> return MODIFIED;
> else /* brute force */
> do a byte-for-byte comparison
>
>But unless you can give us a recipe for a bug, I don't think we can
>track this problem down. Do you have an exact recipe?
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
>For additional commands, e-mail: dev-help@subversion.tigris.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Nov 12 20:36:17 2002

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.