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

Re: bug in svn diff and related?

From: mike south <msouth_at_mcclatchyinteractive.com>
Date: 2005-03-16 18:46:11 CET

David Ripton wrote:
> On 2005.03.16 01:46:12 +0000, mike south wrote:
> > You don't have to fiddle with mtimes to cause buggy behavior--all you
> > have to do is have a machine making the modifications, and it's going to
> > get the commit and then the subsequent modification done inside of the
> > same second a high percentage of the time. The test code I posted gave
> > me 2 errors out of four tries.
>
> This assumes that file timestamps only have one-second granularity.
>
> I don't think the design intent of svn is to only support one-second
> precision, since it uses apr_time_t with microsecond precision.
>
> I suspect that the results you're seeing are due to a svn or apr bug, or
> a filesystem with low-resolution timestamps. What filesystem and OS are
> you using?

os is redhat enterprise 3. These are (I think) IBM blades.

Once people started posting about it I did some more testing and learned
that on the local disk (ext3 fs), I can't get it to happen.

We have shared space on a netapp which is nfs mounted. That is where I
am seeing the problem. The script I posted will fairly frequently
create a file that subersion doesn't recognize as being locally modified.

When I run stat on any file anywhere on the system, all the timestamps
show nine zeroes after the decimal point. So either I'm one lucky
bastard or those are truncated :).

When I look in .svn/entries, I see the committed-date with six decimal
places of precision (I assume it's precision, it's at least non-zero),
but text-time and prop-time are all six-zeroes after the decimal point.

(Kernel is 2.4.21-20.ELsmp, stat is from coreutils 4.5.3 if that's any
help. The depth of my ignorance is such that I have no idea what matters.)

Thanks again everyone for the discussion and suggestions.

mike

>
> --
> David Ripton dripton@ripton.net
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>

-- 
-----------------------------------------
       Name : Mike South
      Title : Software Developer
    Company : McClatchy Interactive
Work Phone : (919) 861-1259
   Work Fax : (919) 861-1300
Work Email : msouth@mcclatchyinteractive.com
        AIM : msouthmi
   Web Site : http://www.mcclatchyinteractive.com/
-----------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Mar 16 18:53:56 2005

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.