※版本管理※=>☆SVN工具☆=>※№ SVN工具自动属性 $Author$ $Date$ $Revision$ $URL$ $Header$替换

        TortoiseSVN设置-》常规设置-》subversion 配置文件 -》编辑

        或者Windows XP 在 C:\Documents and Settings\Administrator\Application Data\Subversion\config 文件Windows7 在 C:\Users\Administrator\AppData\Roaming\Subversion\config 文件注意:Administrator为用户名


第一步:        解除enable-auto-props的注释(删掉前面的#):        

enable-auto-props = yes


第二步:        [auto-props] 下面加入        

[auto-props]       

 *.c = svn:keywords=Author Date Id Revision URL Header       

*.cpp = svn:keywords=Author Date Id Revision URL Header        

*.h = svn:keywords=Author Date Id Revision URL Header


按照自己的扩展名需求来添加即可。如果需要更多的关键字,可空格分隔即可。

如:svn:keywords=Author Date Id Revision URL Header


---------------------------------------------------------------------------------------------------------------------------------------

上面的方法只对新加入SVN的文件有效,如果要对SVN中已有的文件追加对$Id$识别,

执行这个命令:        svn propset svn:keywords "Id"


常用.h .cpp文件头
/**
  @(#)$Id$
  @brief     Multi-threaded programming critical section (lock)


  @Author $Author$
  @Date $Date$
  @Revision $Revision$
  @URL $URL$
  @Header $Header$
 */






常用文件设置属性
# Image formats
*.bmp   = svn:mime-type=image/bmp
*.gif   = svn:mime-type=image/gif
*.ico   = svn:mime-type=image/ico
*.jpeg  = svn:mime-type=image/jpeg
*.jpg   = svn:mime-type=image/jpeg
*.png   = svn:mime-type=image/png
*.tif   = svn:mime-type=image/tiff
*.tiff  = svn:mime-type=image/tiff
   
# Data formats
*.pdf   = svn:mime-type=application/pdf
*.avi   = svn:mime-type=video/avi
*.doc   = svn:mime-type=application/msword
*.eps   = svn:mime-type=application/postscript
*.gz    = svn:mime-type=application/gzip
*.mov   = svn:mime-type=video/quicktime
*.mp3   = svn:mime-type=audio/mpeg
*.ppt   = svn:mime-type=application/vnd.ms-powerpoint
*.ps    = svn:mime-type=application/postscript
*.psd   = svn:mime-type=application/photoshop
*.rtf   = svn:mime-type=text/rtf
*.swf   = svn:mime-type=application/x-shockwave-flash
*.tgz   = svn:mime-type=application/gzip
*.wav   = svn:mime-type=audio/wav
*.xls   = svn:mime-type=application/vnd.ms-excel
*.zip   = svn:mime-type=application/zip
   
# Text formats
.htaccess   = svn:eol-style=native; svn:mime-type=text/plain
*.css       = svn:eol-style=native; svn:mime-type=text/css
*.dtd       = svn:eol-style=native; svn:mime-type=text/xml
*.htm       = svn:eol-style=native; svn:mime-type=text/html
*.html      = svn:eol-style=native; svn:mime-type=text/html
*.ini       = svn:eol-style=native; svn:mime-type=text/plain
*.sql       = svn:eol-style=native; svn:mime-type=text/x-sql; svn:keywords=Id
*.txt       = svn:eol-style=native; svn:mime-type=text/plain
*.xhtml     = svn:eol-style=native; svn:mime-type=text/xhtml+xml
*.xml       = svn:eol-style=native; svn:mime-type=text/xml
   
# Code formats
*.js        = svn:eol-style=native; svn:mime-type=text/javascript
*.inc       = svn:eol-style=native; svn:mime-type=text/x-php
*.php       = svn:eol-style=native; svn:mime-type=text/x-php; svn:keywords=Id



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值