[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with keywords in XML files

From: Julian Opificius
Subject: Re: problem with keywords in XML files
Date: Fri, 21 Oct 2005 21:12:22 -0500
User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)

Paul Sander wrote:

On Oct 21, 2005, at 6:38 PM, Jim Hyslop wrote:

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 specific
file formats or comment delimiters. It is up to you to place the closing
delimiters in the file.

No problem at all.

In other words, you have to do something like this:


Works fine thanks - with ": " after "Log", of course.

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.

No problem.

  (You can install a commitinfo script to
enforce this, if necessary.)

Too much work ;-)

But in the long run it's actually better to turn off keyword expansion, for many reasons.

Many? I'd be happy to hear whatever you have. As poor lowly embedded computer folk we haven't had much use for high-fallutin' fancy stuff like XML, and we haven't yet experienced the pitfalls.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]