[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: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2002-11-12 20:51:07 CET

subversion@lclark.net writes:

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

Well, heck, that's the bogosity right there. Is that normal on win32?
When you copy a file, the timestamp doesn't change?? I've never heard
of such a thing.

> 4. svn st and svn st -u both return no changes to WC2.
>

Right. The first check we make is whether the timestamp has changed.
If the timestamp hasn't changed, svn assumes it couldn't *possibly* be
modified. (If the timestamp has changed, then svn resorts to
file-size and possibly brute-force.) This is exactly what CVS does as
well.

So what's going on here is an odd copy behavior on win32, which
doesn't match unix behavior. What's the right solution?

---------------------------------------------------------------------
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:53:05 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.