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

Re: How current is my source tree?



In message <Pine.BSO.4.33.0110031711130.4202-100000@ecce.homeip.net>, Thorsten 
Glaser writes:
>Hello, experts,
>
>assume the following scenario:
>I update my /usr/src tree, for example by anoncvs or
>CVSup in checkout mode.
>Then I want to know what `date` the time of the last
>commit in the checked-out repository is, because for
>example I want to record a certain time before which
>any commits are included and none after.
>
>Is there an easy way to get it, or do I have to remind
>the mail of source-changes@ and look which is the last
>I got?

Hi,

Consider using ctm - that will give you two kinds of stamps:
* The ctm delta id (e.g., OpenBSD-cvs 1939.)
* The time the applied delta was generated (e.g., 20010930101057Z.)

The first will give you a baseline for what cvs-repo you checked out
the source from (or what source you used if using OpenBSD-src); the
latter will at least indicate that you get no files committed (really:
committed _and_ synced out to the delta generating machine) later than
2001-09-30 10:10:57 UTC:-)

	- mho

CTM_BEGIN 2.0 OpenBSD-cvs 1939 20010930101057Z .
CTMFS .ctm_status 1099 1099 664 7dd76af09756c74331d0f77740a3d3cd 7c58dedbdc924c0
e794ac8d966f9a71b 17
OpenBSD-cvs 1939

[...]