zoukankan      html  css  js  c++  java
  • ※编程随笔※=>☆编程基础☆=>※№ SVN工具自动属性 $Author$ $Date$ $Revision$ $URL$ $Header$替换

    
    
    
    

    TortoiseSVN设置-》常规设置-》subversion 配置文件 -》编辑
    或者
    Windows XP 在 C:Documents and SettingsAdministratorApplication DataSubversionconfig 文件
    Windows7 在 C:UsersAdministratorAppDataRoamingSubversionconfig 文件
    注意: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

  • 相关阅读:
    开发day7
    开发day6
    开发day5
    开发day4
    开发day3
    开发day2
    开发day1
    假期学习2/8
    什么是栈帧
    JDK、JRE和JVM到底是什么
  • 原文地址:https://www.cnblogs.com/dyllove98/p/3144877.html
Copyright © 2011-2022 走看看