VSS使用技巧-在代码里自动加入时间戳
2006-06-01 16:14
731 查看
http://liubiqu.cnblogs.com/archive/2006/05/05/391981.html
在SourceSafe Admin里面设置一下选项 Tools->Options->General->expand keywords in files of type
意思是为以下类型的文件启用扩展关键字,可以输入需要处理的文件类型:如:*.txt,*.cs,*.aspx
在代码里插入
/* Last Modified
$Author: $
$Modtime: $
$Revision: $
*/
在用户进行签入后就会自动生成如下的信息:
/* Last Modified
$Author: Lbq $
$Modtime: 06-05-05 11:58 $
$Revision: 3 $
*/
注意,客户端要重新登陆。
Type this keyword To add the following
$Archive: $ VSS archive file location
$Author: $ User who last changed the file
$Date: $ Date and time of last checkin
$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
在CVS可以也可以使用$Id$、$Header$生成。
在SourceSafe Admin里面设置一下选项 Tools->Options->General->expand keywords in files of type
意思是为以下类型的文件启用扩展关键字,可以输入需要处理的文件类型:如:*.txt,*.cs,*.aspx
在代码里插入
/* Last Modified
$Author: $
$Modtime: $
$Revision: $
*/
在用户进行签入后就会自动生成如下的信息:
/* Last Modified
$Author: Lbq $
$Modtime: 06-05-05 11:58 $
$Revision: 3 $
*/
注意,客户端要重新登陆。
Type this keyword To add the following
$Archive: $ VSS archive file location
$Author: $ User who last changed the file
$Date: $ Date and time of last checkin
$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
在CVS可以也可以使用$Id$、$Header$生成。
相关文章推荐
- VSS使用技巧-在代码里自动加入时间戳
- VSS使用技巧-在代码里自动加入时间戳
- 自动将当前日期时间加入到编译代码中的方法
- 牛刀小试:使用Reactive Extensions(Rx),一行代码实现多线程任务执行规定时间后自动停止
- eclipse使用技巧之自动代码提示,也可以像VS一样哦!
- VS使用技巧——代码自动调整格式
- vim配置技巧——在vim中使用autocmd命令在保存文件时自动插入最后修改日期和时间
- Android--Android Studio使用技巧--设置代码自动换行
- 牛刀小试:使用Reactive Extensions(Rx),一行代码实现多线程任务执行规定时间后自动停止
- Eclipse使用技巧 - 5. Eclipse代码自动补全失效解决办法
- dreamweaver使用技巧之格式化代码自动缩进
- 使用Git的hook实现代码的自动部署
- mybatis-generator自动生成代码插件使用详解 idea
- Eclipse使用技巧 - 2. Eclipse自动补全功能轻松设置
- [No00008F]PLSQL自动登录,记住用户名密码&日常使用技巧
- SSM框架——使用MyBatis Generator自动创建代码
- 窗口使用技巧系列文章--自动调整窗口
- 学习如何使用Mybatis-generator 自动生成java代码以及Mapper文件
- .NET Core快速入门教程 5、使用VS Code进行C#代码调试的技巧
- Mybatis Generator Configuration Eclipse自动生成代码工具使用及实现基本crud