cvup mirrors and exact CVS dates
Jason Harris
jharris at widomaker.com
Fri Oct 26 09:15:37 PDT 2007
On Fri, Oct 26, 2007 at 01:02:07PM +0300, Peter Pentchev wrote:
> On Fri, Oct 26, 2007 at 11:02:11AM +0200, Erik Cederstrand wrote:
> > I reread my previous email, and I may not have made myself clear. I'm
> > trying to answer the question: "Are CVS dates aaaa.bb.cc.dd.ee.ff and
> > uuuu.vv.ww.xx.yy.zz equal, in terms of source code?". Anyway, there might
> > be no easy way to answer this, and it's not a top priority for me.
>
> The only certain and reliable way that I can think of is parsing all
> the *,v CVS files and extracting the change dates from them. As you
> may realize, that's a lot of work, or at least a task that is quite
> time-consuming and disk-intensive - but I can think of no other way.
For me, the c[v]sup logs like /var/db/sup/ports-all/checkouts.cvs:. or
/var/db/sup/src-all/checkouts.cvs:RELENG_6 look like just what you
want. One line from the former, for example:
C ports/MOVED,v . . 2#871#110#11933239746#7682403#444 1.1508 2007.10.25.14.52.54 2#871#110#11933239746#2449903#660
corresponds to what "cvs log ports/MOVED" reports for the revision and
checkin time:
revision 1.1508
date: 2007/10/25 14:52:54; author: hrs; state: Exp; lines: +2 -1
Remove print/yatex-mule because Mule is obsolete now.
and note that csup does appear to be setting the mtime on my filesystem
(ufs, local, soft-updates) to match the CVS checkin timestamp:
%env TZ=UTC /usr/bin/stat ports/MOVED
95 1436884 -rw-rw---- 1 jason wheel 5753136 244990 "Oct 26 15:27:46 2007" "Oct 25 14:52:54 2007" "Oct 26 15:27:46 2007" "Oct 25 14:52:54 2007" 4096 512 0 ports/MOVED
or perhaps more clearly:
%stat.pl ports/MOVED
ports/MOVED: dev 95, inode 1436884, mode 33200, nlinks 1
uid 1000, gid 0, size 244990, rdev 5753136
blksize 4096, blocks 512
atime 1193412466, mtime 1193323974, ctime 1193412466
atime = 2007-10-26 15:27:46 GMT
mtime = 2007-10-25 14:52:54 GMT
ctime = 2007-10-26 15:27:46 GMT
But if you really want to be sure, modify csup to also log the MD5 hashes
it gets as part of the protocol (and confirms after patching each file).
--
Jason Harris | NIC: JH329, PGP: This _is_ PGP-signed, isn't it?
jharris at widomaker.com _|_ web: http://keyserver.kjsl.com/~jharris/
Got photons? (TM), (C) 2004
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 313 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hubs/attachments/20071026/6665aa36/attachment.pgp
More information about the freebsd-hubs
mailing list