|
From: | Paul Sander |
Subject: | Re: problem with keywords in XML files |
Date: | Fri, 21 Oct 2005 18:46:24 -0700 |
On Oct 21, 2005, at 6:38 PM, Jim Hyslop wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Julian Opificius wrote:cvs-1.12.9-2.2 on Suse Linux 9.2 We've just started adding Source, Revision, Date, and Log keywords in XML files we're checking into CVS. The first three (located at the top of the file) are OK, but CVS does not put the "-->" comment closer at the end of the log entries (at the end of the file), and the application reading them is getting upset. What am I doing wrong?You are expecting too much from CVS. It has no knowledge of specificfile formats or comment delimiters. It is up to you to place the closingdelimiters in the file.
In other words, you have to do something like this: <-- $Log$ -->And then you have to hope that no one ever puts "-->" in their commit comment, because it will end the comment prematurely as far as it concerns the XML parser. (You can install a commitinfo script to enforce this, if necessary.)
But in the long run it's actually better to turn off keyword expansion, for many reasons.
---- Paul Sander | A witty saying proves nothing. address@hidden | Voltaire (1694-1778)
[Prev in Thread] | Current Thread | [Next in Thread] |