info-cvs
[Top][All Lists]
Advanced

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

Re: [Fwd: Q on keyword substitution]


From: Pierre Asselin
Subject: Re: [Fwd: Q on keyword substitution]
Date: Tue, 11 Jan 2005 00:25:08 +0000 (UTC)
User-agent: tin/1.6.1-20030810 ("Mingulay") (UNIX) (NetBSD/2.0 (i386))

jsWalter <address@hidden> wrote:

> > It's -kv, not '-ko'.  '-kv' removes the keyword (and the bracketing
> > $$) and leaves only the value.

> OK, but doesn't this strip ALL the keywords?

Yes.  It's all or nothing.


> > and you have to be *very* careful with the spelling of '$Revision:
> > $' when you add a new line in the file you're editing.  [ ... ]

> OK, you lost me here.

Well, suppose you edit the file and add a line with a '$Rvision' marker,
misspelled.  You commit that, the bad marker goes in the repository.  You
check out or update, the keyword is not expanded/clobbered because of
the spelling error.  The information you need is still present in the
repository and you can still see it, e.g. with 'cvs annotate', but
someone will have to edit the file and manually correct the bad line.

My suggestion was to use a spelling that can be checked by a utility,
and to enforce that check in a commitinfo hook.

-- 
pa at panix dot com


reply via email to

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