[p4] Question about RCS Keyword expansion and Revision history insertion

Paul van Mulbregt paulvm at dragonsys.com
Mon Nov 13 11:53:52 PST 2000


Hi,
I'm looking at Perforce and trying to figure out how all my current 
concepts and functionality map onto p4.
In particular, there are 2 things I haven't figured out yet.
1. Expansion of the Revision number
2. Insertion of revision history into a file.

1. I'm used to having lines like
/* *keyword-flag* "%v" */
char gVersionNumberString[] = "106";

and the SCM fills in the appropriate version number on the next line (in 
this case 106).
With RCS keyword expansion, it looks as though "$Revision$" is always 
expanded as
"$Revision: #106 $".  Or am I misreading the page in the manual 
http://www.perforce.com/perforce/doc.001/manuals/p4guide/04_details.html#1049064
I'd prefer to just get the revision into a string all by itself.  Is that 
possible?

2. How does one get a revision history into a file?
Again, I'm used to adding lines to my file such as
// *revision-history*
// *revision-history*
which the SCM tools expands into
// *revision-history*
// 1 xx.cpp 09-Mar-98,17:13:10,`PAULVM' Initial revision
// 2 xx.cpp 11-Mar-98,16:00:20,`PAULVM' added swapHeaderFields function and
//      fixed bug in BIG_ENDIAN swapping
// *revision-history*
upon extraction.  I don't see any way to do this with Perforces's keyword 
expansion.  Is there a way?  If not, how do you get a revision history 
inserted into a file ?

Thanks for any help,
Paul

------------------------------------------------------------------
Paul van Mulbregt, Dragon Systems, Newton, MA. (617) 965-5200
email: paulvm at dragonsys.com





More information about the perforce-user mailing list