xylz,imxylz

          關注后端架構、中間件、分布式和并發編程

             :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            111 隨筆 :: 10 文章 :: 2680 評論 :: 0 Trackbacks

          Subversion(SVN)自動展開關鍵字的方法

          通用設置

          在subversion的config文件中添加/修改如下一段:

          [miscellany]
          enable-auto-props = yes
          [auto-props]
          * = svn:keywords=LastChangedDate LastChangedRevision LastChangedBy Id Author Date Revision HeadURL;svn:eol-style=native

          路徑

           Windows: %APPDATA%\Subversion\config  %ALLUSERSPROFILE%\Application Data\Subversion\config
          Unix/Linux: ~/var/lib/subversion/conf/    ~/.subversion/config    /etc/subversion/config

          支持軟件

          This is also the place to look for the config file if you are using Windows, Eclipse and the Subclipse Plugin and using the JavaHL binding (probably also for the JavaSVN binding, but I did not test that).

          補充說明

          如果已經存在的文件(如果之前沒有開啟關鍵字替換),那么再次更新也不會替換。也就是說僅僅對新添加的文件(開啟此特性之后)的文件才有效。對于已經存在的文件,需要使用下面命令來生效。當然也可以使用subclipse的圖形界面來操作。

          svn propset svn:keywords "Id" <file>
          

          原文說明

          ### Set enable-auto-props to 'yes' to enable automatic properties
          ### for 'svn add' and 'svn import', it defaults to 'no'.
          ### Automatic properties are defined in the section 'auto-props'.
          enable-auto-props = yes
          

          參考地址




          ©2009-2014 IMXYLZ |求賢若渴
          posted on 2011-04-12 14:02 imxylz 閱讀(3362) 評論(0)  編輯  收藏 所屬分類: 技術

          ©2009-2014 IMXYLZ
          主站蜘蛛池模板: 宜宾县| 龙南县| 光泽县| 阿拉善左旗| 新津县| 梅河口市| 望奎县| 中江县| 延庆县| 绥中县| 杂多县| 东港市| 安泽县| 霍州市| 镇原县| 延川县| 万源市| 罗田县| 葫芦岛市| 福鼎市| 克山县| 桑日县| 灌阳县| 天镇县| 肥城市| 夏河县| 虹口区| 专栏| 文登市| 玉龙| 木兰县| 丹棱县| 综艺| 菏泽市| 毕节市| 南开区| 绥化市| 葫芦岛市| 缙云县| 广宁县| 佛冈县|