[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
What's the exact behaviour of '-D date-spec'?
From: |
Evan Lavelle |
Subject: |
What's the exact behaviour of '-D date-spec'? |
Date: |
Tue, 24 Jan 2006 14:08:05 +0000 |
User-agent: |
Mozilla Thunderbird 1.0.2 (Windows/20050317) |
What is the behaviour of '-D date-spec' without a time, and with a time?
The manual says "Use the most recent revision no later than date_spec".
But CVS 1.11.17 doesn't seem to do this. Without a time, it seems to be
"use the most recent revision no later than time 00:01 on date-spec".
Surely no later than, for example, January 24th should actually mean no
later than 23:59 on Jan 24th? The timed version also seems to be
incorrect: it seems to be an hour out (daylight saving?!)
I have a repository with no tags, and I need to retrieve the version
which was checked in at the end of the day on 1999-08-10 (there may have
been more than one version checked in that day). I've tested this on one
file which has this log:
----------------------------
revision 1.4
date: 2000/01/31 09:51:37;
----------------------------
revision 1.3
date: 1999/08/10 11:00:45;
----------------------------
revision 1.2
date: 1999/03/09 16:24:13;
----------------------------
Here are the results (cvs update -D"x"):
Date Gets version
---------- ------------
1999-08-10 1.2
1999-08-11 1.3
1999-08-10 11:15 1.2
1999-08-10 12:00 1.2
1999-08-10 12:01 1.3
1999-08-10 12:15 1.3
1999-08-10 13:00 1.3
1999-08-10 23:59 1.3
My reading is that *all* these updates should have got v1.3.
Thanks -
Evan
- What's the exact behaviour of '-D date-spec'?,
Evan Lavelle <=