info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: My first stumper ...


From: Derek R. Price
Subject: Re: My first stumper ...
Date: Fri, 19 Jan 2001 10:41:25 -0500

Larry Jones wrote:

> Derek R. Price writes:
> >
> > That happens on a lot of platforms (I think all platforms for CVS, but
> > I couldn't tell you more) and there's no way around it.  It's simply that 
> > the
> > granularity of time stamps is stored in seconds by the file and operating
> > systems.
>
> Not so -- CVS sleeps until the system time no longer matches the
> timestamp of the most recent file.  As I said in another reply, this
> avoids the problem on all systems where the system clock and the
> filesystem have the same granularity; it only affects systems where the
> filesystem has a coarser granularity than the system clock.  I haven't
> come up with a good way to fix it yet.

What about touch?  The versions distributed with FreeBSD 4.2 and my Linux system
both accept arguments in the form '-t [CC]YYMMDDhhmm[.ss]' for specifying a
timestamp other than the current time.

Don't know how portable that is, but the script could search for a working touch
and sleep otherwise.  A cvstouch function that accepts an offset into the past 
in
seconds as an argument comes to mind.

Derek

--
Derek Price                      CVS Solutions Architect ( http://CVSHome.org )
mailto:address@hidden     OpenAvenue ( http://OpenAvenue.com )
--
I often speculate on why you don't return to America.  Did you abscond with the
church funds?  Did you run off with the senator's wife?  I like to think that
you killed a man.  It's the romantic in me.

                - Claude Rains as Captain Louis Renault, _Casablanca_






reply via email to

[Prev in Thread] Current Thread [Next in Thread]