info-cvs
[Top][All Lists]
Advanced

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

RE: Loginfo - only first of %p and ${sVv} substituted


From: Bulgrien, Kevin
Subject: RE: Loginfo - only first of %p and ${sVv} substituted
Date: Wed, 31 May 2006 08:07:35 -0500

-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf
Of Rob Desbois
Sent: Wednesday, May 31, 2006 7:05 AM
To: address@hidden
Subject: Loginfo - only first of %p and ${sVv} substituted

I have a problem with loginfo in that only one of %p and %{sVv} will be
substituted in the parameter list.From 1.12.x regarding Legacy repositories
(1.11.x, etc.)

<snip>

-----Original Message-----

I'd say you are trying to use 1.12.x functionality based on a quick read of
the manual, though I do not consider myself an expert just because I run a
loginfo script on 1.11.x.  The 1.11.x manual says nothing about the
parameter format that you described.  %p is also not documented for 1.11.x.
Also, %p seems a bit redundant.  In my 1.11.x installation, the repository
path is returned in the loginfo script parameter when I specify %{sVv}.
Are you sure that "test" is not being returned by %p %{sVv} simply because
% is there?

The 1.12.x manual hints that "only the first '%' in the line is replaced for
legacy versions of CVS, and further hints that %p may only be available when
1.12.x's UseNewInfoFmtStrings=yes.

http://ximbiot.com/cvs/manual/cvs-1.12.13/cvs_18.html#SEC185

C.3.1 The common syntax

---
Note: The following information on format strings is valid as long as the
line UseNewInfoFmtStrings=yes appears in your repository's config file (see
section The CVSROOT/config configuration file). Otherwise, default format
strings may be appended to the command line and the `loginfo' file,
especially, can exhibit slightly different behavior. For more information,
See section Updating legacy repositories to stop using deprecated command
line template formats.
---

and http://ximbiot.com/cvs/manual/cvs-1.12.13/cvs_18.html#SEC189

C.3.3.1 Updating legacy repositories to stop using deprecated command line
template formats

---
If you were counting on the fact that only the first `%' in the line was
replaced as a format string, you may also have to double up any further
percent signs on the line.
---

Kevin R. Bulgrien
Design and Development Engineer
General Dynamics C4 Systems
http://www.gdsatcom.com/




reply via email to

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