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

Re: Strange diffs after rsync copying of working copy

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Fri, 03 Feb 2012 13:50:36 +0000

Johan Holmberg <holmberg_at_iar.se> writes:

> On 02/03/2012 02:09 PM, Philip Martin wrote:
>> Johan Holmberg<holmberg_at_iar.se> writes:
>>> So I don't think saying "If that timestamp differs from the one on
>>> disk, the file is considered modified." is correct. "svn" does not
>>> work like that for me at least.
>> You are correct, that is not how Subversion behaves. Subversion checks
>> the timestamp to determine whether to do a full text comparison. If the
>> timestamp and size of a working file match the recorded values the file
>> is assummed to be unmodified. If the values differ Subversion does a
>> full text comparison to determine if the files differ.
> I have now done some further experiments. I just issued commands like this:
> $ svn status # no modified files reported

Subversion is not doing a full text comparison because the timestamps
match. So the difference that is present is not reported.

> $ touch foo.txt bar.txt

Now the timestamps don't match.

> $ svn status
> M foo.txt <------ only "foo.txt" not "bar.txt"

Subversion now does a full text comparison and the difference is

Received on 2012-02-03 14:51:14 CET

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

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