More code comments that won't get shipped
Aug. 22nd, 2006 03:52 pm
Background: I’m writing a script to read data out of ClearCase history records. The format code %Nd is used to get the maximally specific timestamp for an operation, in yyyymmdd.hhmmss format. The lshistory command accepts a parameter -since that allows you to see all records that have been entered since a given timestamp. And -since insists that its long date format look like dd-month-[yy]yy.[h]h:[m]m:[s]s, which means that if I want to grab the most recent record and stash its timestamp to use as the -since for the next query, I have to rearrange it.
Somehow, I suspect that I will be required to redact this comment before we ship a script containing it:
# $when is in yyyymmdd.hhmmss format. It is, of course, invalid as input # to "-since", because that would be presenting a consistent interface, # which would doubtless violate some engineer's Dark Pact and cause their # soul to be claimed immediately.

Hah!
Date: 2006-08-23 12:27 am (UTC)Re: Hah!
Date: 2006-08-23 12:30 am (UTC)Re: Hah!
Date: 2006-08-23 08:45 am (UTC)