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

Re: FW: Import and Commit and file modification times

From: Michael Sinz <Michael.Sinz_at_sinz.org>
Date: 2005-08-19 23:08:40 CEST

Svante Seleborg wrote:
> (snip)
>
>>So status will show some sort of "modified" indicator
>>whenever the filesystem timestamp and the property timestamp
>>don't match?
>
>
> Not some sort of "modified" - just plain modified. Just as if you had indeed
> modified the contents too. Generally speaking that is the current behavior.

I do not understand why you keep bringing this up. Currently (1.2.1 and earlier)
SVN did actually check the file contents for modification. Try it, you may
be surprised.

In fact, it is a nice thing to have a file that was edited a few times and
then turns out to be the same as it was since the last commit end up showing
in "svn status" as not modified even with the time stamps updated.

So, lets not confuse the behavior you think is there with the behavior that
actually is there.

BTW - This is even more complex that it looks since if you edit what is in,
say, the $Id: xxxxx $ string, and thus the file is actually different but
not really (since that string is managed by SVN) then "svn status" will still
show the file as unchanged.

> If you modify the filesystem timestamp, it'll show up as modified until you
> try to commit, at which time it'll decide there was no "real" change. The
> proposed design would consider a timestamp change a "real" change all on
> its own.

Well, depends on what you are calling a "real change" - Any meta-data change
is a "real change" but it is not a change to the file contents. That is currently
the way Subversion works and is, in some ways, proper. There is a difference
between meta-data and data, albeit an arbitrary difference, there is a difference.
Mostly this is due to the way we (as people) tend to view the data of the
file vs the meta-data of the file.

A picture will look exactly the same no matter what the timestamp says or the
execute bit setting is.

> (snip)
>
>>Does it show up as text modifed 'M ', property modifed ' M',
>>or some other timestamp modified indicator?
>
> I'd say "text modified 'M'"".

Show me where the text is modified. In source code or ASCII text of Word
documents, if someone tells me that there is a difference, I would expect
that "diff" (or some equiv tool) would show me what changed. If there is
nothing to show, it would seem to me that telling me that there is a text
change is wrong/a bug.

[... rest deleted...]

-- 
Michael Sinz                     Technology and Engineering Director/Consultant
"Starting Startups"                                mailto:michael.sinz@sinz.org
My place on the web                            http://www.sinz.org/Michael.Sinz
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Aug 19 23:09:41 2005

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.