Expanding RCS keywords

RCS (Revision Control System), an early version control system, defined keywords that you can embed in your source files. These keywords are updated whenever a file is committed to the repository. Helix Server supports some RCS keywords.

To activate RCS keyword expansion for a file, use the +k modifier. RCS keywords are expanded as follows.

Keyword Expands To Example

$Author$

Helix Server user submitting the file

$Author: bruno $

$Change$

Helix Server changelist number under which file was submitted

$Change: 439 $

$Date$

Date of last submission in format YYYY/MM/DD

$Date: 2011/08/18 $

$DateTime$

Date and time of last submission in format YYYY/MM/DDhh:mm:ss

Date and time are as of the local time on the Helix Server at time of submission.

$DateTime: 2011/08/18 23:17:02 $

$File$

Filename only, in depot syntax (without revision number)

$File: //depot/path/file.txt $

$Header$

Synonymous with $Id$

$Header: //depot/path/file.txt#3 $

$Id$

Filename and revision number in depot syntax

$Id: //depot/path/file.txt#3 $

$Revision$

Helix Server revision number

$Revision: #3 $

To display a file without expanding its keywords, use p4 print -k filename.