[cvsspam-devel] Script changes for new CVS info format strings
David Multer
david at multer.com
Mon Oct 27 18:18:19 GMT 2008
I didn't realize you already parsed for the new format strings. I had
already updated the format according to your documentation, and only
had to update my CVSROOT/config. Note also that all new CVS setups
include the new format strings by default and don't exhibit the
problem. Everything is working great now!
Thanks,
David
On Oct 27, 2008, at 10:44 AM, David Holroyd wrote:
> 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/
>
> _______________________________________________
> cvsspam-devel mailing list
> cvsspam-devel at lists.badgers-in-foil.co.uk
> http://lists.badgers-in-foil.co.uk/mailman/listinfo/cvsspam-devel
More information about the cvsspam-devel
mailing list