Article ID: 141504
Article Last Modified on 3/14/2005
Valid Keyword Description --------------------------------------------------------------- $Archive: $ && Project path and file name in SourceSafe $Author: $ && User who last changed the file $Date: $ && Date and Time of last check in $Header: $ && Archive Info, Revision, Date, User $Logfile: $ && Same as $Archive: $ $Modtime: $ && Date and time of last modification $Revision: $ && Revision number $Workfile: $ && File name $Log: $ && Same as $History: $ except in RCS format $History: $ && File name, Revision, Date, Time, User $NoKeywords: $ && Disables all keywords after this keyword
Keyword_Masks = *.TXT
Expand_Keywords_Locally = YESNOTE: You can put the Expand_Keywords_Locally setting into a user's Ss.ini file to individualize settings.
129192 BUG: Keyword Expansion Fails on the Macintosh
Keyword_Masks = *.C, *.CCP, *.H, *.HPP, *.BAS
131092 PRB: Keyword Expansion is Case Sensitive
$Archive: $ $Author: $ $Date: $When expanded, it will look like this:
$Archive: /KeywordAlignTest/KeyAlign1.txt $ $Author: Guest $ $Date: 11/23/95 9:31a $The other way is to format the keywords so that when they are expanded, the values are aligned in a column. Note the use of two colons and the amount of space between the colons and the second dollar sign.
$Archive:: $
$Author:: $
$Date:: $
When it is expanded, it looks like the following:
$Archive:: /KeywordAlignTest/KeyAlign1.txt $
$Author:: Guest $
$Date:: 11/11/95 5:57p $
If you don't leave enough space between the colons and the dollarsign, SourceSafe will truncate the value so it would look like the following:
$Archive:: /KeywordAli$
$Author:: Guest $
$Date:: 11/11/95 5:$
*.ASM = "; " *.BAS = "rem " *.BAT = "rem " *.S = "; " ;default comment for all other file types *.* = "* "If you want to use a different comment character in a file that has a specific file extension, add the following lines to the Srcsafe.ini file on the server:
[Keyword Comments] *.C = "/*","*/"The comment character is especially important in dealing with $Log: $ and $History: $ keywords. Unlike the other keywords, $Log: $ and $History: $ keywords add more information to the file each time keywords are updated -- instead of just replacing the previous information with the current information. A comment character, as defined by the Srcsafe.ini, is added to the beginning of each line created by $Log: $ and $History: $ keywords. For example, if the following is in a .txt file:
*$Log: $ *$History: $and the default comment characters are in effect, it would look like the following after keyword expansion took place:
*$Log: /KeywordAlignTest/KeyAlign1.txt $
*
* 3 11/23/95 10:47a Guest
*
* 2 11/23/95 10:45a Guest
*
* 1 11/11/95 5:57p Guest
*$History: KeyAlign1.txt $
*
* ***************** Version 3 *****************
* User: Guest Date: 11/23/95 Time: 10:47a
* Updated in $/KeywordAlignTest
*
* ***************** Version 2 *****************
* User: Guest Date: 11/23/95 Time: 10:45a
* Updated in $/KeywordAlignTest
*
* ***************** Version 1 *****************
* User: Guest Date: 11/11/95 Time: 5:57p
* Updated in $/KeywordAlignTestKeywords: kbhowto kbfaq KB141504