zoukankan      html  css  js  c++  java
  • VSS使用技巧-在代码里自动加入时间戳

    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$生成。

  • 相关阅读:
    node基础
    jade模板引擎
    体验nodejs有感
    JavaScript创建对象、原型与继承
    JavaScript变量作用域和内存问题(js高级程序设计总结)
    HIbernate 延迟加载和级联删除
    git的简单使用
    Java集合类(一) HashMap、Map、LinkedHashMap、TreeMap
    VMware的网络配置
    密码学基础
  • 原文地址:https://www.cnblogs.com/flyfish/p/414993.html
Copyright © 2011-2022 走看看