[cvsspam-devel] Script changes for new CVS info format strings

David Holroyd dave at badgers-in-foil.co.uk
Mon Oct 27 17:44:20 GMT 2008


On Mon, Oct 27, 2008 at 06:42:04AM -0700, David Multer wrote:
> I'm using the latest CVSspam and I get the following message after a  
> CVS commit. Before I upgraded to the latest CVS, I was getting no  
> warning message.
> 
> cvs commit: warning:  Set to use deprecated info format strings.   
> Establish
> compatibility with the new info file format strings (add a temporary  
> '1' in
> all info files after each '%' which doesn't represent a literal percent)
> and set UseNewInfoFmtStrings=yes in CVSROOT/config.  After that, convert
> individual command lines and scripts to handle the new format at your
> leisure.
> 
> My CVS/commitinfo:
> ALL /usr/local/lib/cvsspam/record_lastdir.rb %r/%p %s
> 
> My loginfo:
> ALL /usr/local/lib/cvsspam/collect_diffs.rb --to commits at domain.com % 
> {sVv}
> Sounds like there might have been another format change, but I'm not  
> sure. I don't know where the error comes from.

This message comes from CVS itself.  I suspect that CVSspam already has
the required support, but the CVS server needs to be explicitly
configured to use it.

CVS 1.12.xx introduced this change, and so that it doesn't just break
existing commit scripts for users such as yourself, it is disabled by
default.  CVS detects usage of the 'old' format strings and gives you
this warning, however.

I can't find a direct reference to the relevant CVS documentation on the
web, and I don't recall the details off the top of my head, but have a
look in your CVSROOT/config and see if it includes instructions there.

CVSspam should notice once you've changed CVSROOT/config and
automatically start expecting to be passed command-line arguments in the
new format (assuming of course that you update the format-strings at the
same time).

Hope that works; sorry I can't explain the precise details any more!


ta,
dave

-- 
http://david.holroyd.me.uk/



More information about the cvsspam-devel mailing list