[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug with cvs commit and timestamps
From: |
Tom Kacvinsky |
Subject: |
Re: bug with cvs commit and timestamps |
Date: |
Tue, 17 Apr 2001 17:19:47 -0400 (EDT) |
Wait a second... Let me try to explain what I mean:
tjk@thor:~/type1> ls -l foofoo
-rw-rw-r-- 1 tjk prg 28 Apr 17 17:11 foofoo
tjk@thor:~/type1> cvs ci -m test foofoo
Checking in foofoo;
/work/ptg/cvsroot/type1/foofoo,v <-- foofoo
new revision: 1.4; previous revision: 1.3
done
>From /work/ptg/cvsroot/type1/foofoo,v:
head 1.4;
access;
symbols;
locks; strict;
comment @# @;
1.4
date 2001.04.17.21.12.24; author tjk; state Exp;
branches;
next 1.3;
As you can see, the timestamp in the RCS master file is the time of check in
(taking into account time zone offsets) and not the timestamp on the file being
checked in. Upon subsequent check outs, the file gets the correct timestamp
(from the master file on the first checkout, current date upon updating). The
co/update stuff I grokked just fine. It is the commit/add stuff that is driving
me bonkers.
Oh, wait a second, I see what is going on (slapping forehead as I reread what
you wrote). I think that the FAQ ought to be updated with respect to this. It
is not clear which timestamp and which file the FAQ is referring to, at least
not to me. :(
Thanks again!
Tom
On Tue, 17 Apr 2001, Larry Jones wrote:
> Tom Kacvinsky writes:
> >
> > The source is from the FAQ distributed with the CVS 1.11 source (and the
> > text
> > is the same in the CVS FAQ-o-matic maintained by Pascal Molli):
> [...]
> > The line that I am referring to is this one:
> >
> > The "commit" command retains the timestamp of the file, if the act of
> > checking it in didn't change it (by expanding keywords).
>
> That's talking about the timestamp of the file in the working directory
> that's being checked in, not the timestamp of the repository file or the
> checkin date stored inside it. And that works as advertised:
>
> bash-2.02$ ls -l foo
> -rw-r--r-- 1 scjones wheel 4 Dec 1 1999 foo
> bash-2.02$ cvs ci -m test -f foo
> Checking in foo;
> /tmp/cvstest/foo,v <-- foo
> new revision: 1.3; previous revision: 1.2
> done
> bash-2.02$ ls -l foo
> -rw-r--r-- 1 scjones wheel 4 Dec 1 1999 foo
>
> -Larry Jones
>
> Why is it you always rip your pants on the day everyone has to
> demonstrate a math problem at the chalkboard? -- Calvin
>