Transferred from: http://blog.joycode.com/uestc95/Archive/2005/01/14/43057.aSPX said very embarrassment, and has never known this feature of VSS. I saw a merit this feature in the blogger, but the description did not have any details, I also asked a colleague to know how to configure the VSS to implement this function, this is briefly shared to everyone, I hope I can help .
Previously used CVS knows that there are several macro parameters that can be used, such as $ header $, etc., but do not know if you can use it, Google is found, found in the VSS as follows:
Type this keyword
To add the folowing
$ Archive: $
VSS Archive File Location
$ Author: $
User Who Last Changed The File
$ Date: $
Date and Time of Last Check IN
$ Header: $
Logfile, Revision, Date, Author
$ History: $
File History, VSS Format
$ JustDate: $
Date, Without The Time Addendum.
$ Log: $
File History, RCS Format
$ Logfile: $
Same as archive
$ Modtime: $
Date and Time of Last Modification
$ Revision: $
VSS Version Number
$ Workfile: $
FILE NAME
$ NOKEYWORDS: $
NO Keyword Expansion for All Keywords That FOLLOW
First use admin to log in to VSS system management interface, select "Options":
Do the following settings:
The VSS of each developer must then be VSS6.0D, if not, you need to update! VSS6.0c is not available. Finally, you need to add the following code to each .cs file:
/ *
$ HEADER $$ Author $$ Date $ $ REVISION $
$ History $
* /
In this way, the following history information is automatically appeared after each change (please do not manually change):
/ *
$ Header: /development/dailyreport/frmmain.cs 13 05-01-14 10:27 uestc95 $
$ Author: uESTC95 $
$ Date: 05-01-14 10:27 $
$ REVISION: 13 $
$ History: frmmain.cs $
*
* **************** VERSION 13 ******************
* User: uESTC95 DATE:
05-01-14
Time: 10:27
* Updated in $ / development / DailyReport
*
* **************** VERSION 12 ******************
* User: uESTC95 DATE:
05-01-14
Time: 10:25
* Updated in $ / development / DailyReport
*
* **************** VERSION 11 ******************
* User: uESTC95 DATE:
05-01-14
Time: 10:06
* Updated in $ / wevelopment / dailyreport * /