subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philip Martin <>
Subject Re: Strange diffs after rsync copying of working copy
Date Fri, 03 Feb 2012 13:50:36 GMT
Johan Holmberg <> writes:

> On 02/03/2012 02:09 PM, Philip Martin wrote:
>> Johan Holmberg<>  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


View raw message