一区二区久久-一区二区三区www-一区二区三区久久-一区二区三区久久精品-麻豆国产一区二区在线观看-麻豆国产视频

讓GoogleCode的SVN下的HTML文件在FireFox下正常顯示.

今天試了下發現GoogleCode提供的SVN中的HTML在Firefox中顯示為HTML源文件
Google了一下,找到了答案:
如果正常顯示需要在SVN提交文件時設置svn:mime-type 為 text/html.(http://blog.pluskid.org/?p=70)
SVN客戶端都支持自動配置具體配置方法如下(http://www.worldhello.NET/wiki/SVN)
--------------------------------------
6.2 新增文件的屬性設置?
Whodo SVN 的 Hooks 腳本會檢查新增文件的屬性,沒有設置 svn:mime-type 和/或 svn:eol-style 屬性,禁止提交。
但是每次添加文件后,還要執行類似“svn ps svn:eol-style ...”的命令,實在太繁瑣了!不過幸好,SVN 客戶端(命令行或者 TortoiseSVN),支持自動屬性的功能。即會為新增文件自動添加屬性。

6.2.1 config 配置文件
啟用和設置自動屬性,是在 config 配置文件中完成的。 config 配置文件的位置:
Unix 平臺
全局的配置文件位置為:/etc/subversion/config; 每個用戶主目錄還有配置文件覆蓋全局配置文件的設置:~/.subversion/config;
Windows 平臺
注冊表中可能包含相應的設置:HKLM/Software/Tigris.org/Subversion/Config,以及 HKCU/Software/Tigris.org/Subversion/Config。 不過文件的優先級更高。全局配置文件:%ALLUSERSPROFILE%/Application Data/Subversion/config,用戶個人配置文件:%APPDATA%/Subversion/config
6.2.2 啟用 auto-props
修改 config 配置,啟用 auto-props:
[miscellany]global-ignores = *.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* .DS_Store .cvsignore Thumbs.db CVSuse-commit-times = yesenable-auto-props = yes
6.2.3 基于文件名的 auto-props 設置
自動屬性的設置,是根據文件名來匹配的。修改 config 文件,增添新的配置,如下:
### Section for configuring automatic properties.[auto-props]### The format of the entries is:### file-name-pattern = propname[=value][;propname[=value]...]### The file-name-pattern can contain wildcards (such as '*' and### '?'). All entries which match will be applied to the file.### Note that auto-props functionality must be enabled, which### is typically done by setting the 'enable-auto-props' option.##################################################### Binary files##################################################*.bmp    = svn:mime-type=image/bmp*.gif    = svn:mime-type=image/gif*.gz    = svn:mime-type=application/x-gzip*.ico    = svn:mime-type=image/x-icon*.jar    = svn:mime-type=application/zip*.jpg    = svn:mime-type=image/jpeg*.pdf    = svn:mime-type=application/pdf*.png    = svn:mime-type=image/png*.ps    = svn:mime-type=application/postscript*.tif    = svn:mime-type=image/tiff*.vsd    = svn:mime-type=application/octet-stream*.zip    = svn:mime-type=application/zip##################################################### Text files, OS dependent eol-style##################################################*.dsp    = svn:eol-style=CRLF*.dsw    = svn:eol-style=CRLF*.mm    = svn:eol-style=LF;svn:mime-type=text/xml*.sh    = svn:eol-style=LF;svn:executableMakefile    = svn:eol-style=LF##################################################### Text files, eol-style is native##################################################*.c        = svn:eol-style=native;svn:mime-type=text/plain*.cpp    = svn:eol-style=native;svn:mime-type=text/plain*.css    = svn:eol-style=native;svn:mime-type=text/css*.diff    = svn:eol-style=native;svn:mime-type=text/plain*.dsl    = svn:eol-style=native;svn:mime-type=text/sgml*.dtd    = svn:eol-style=native;svn:mime-type=text/plain*.ent    = svn:eol-style=native;svn:mime-type=text/plain*.gml    = svn:eol-style=native;svn:mime-type=text/sgml*.h        = svn:eol-style=native;svn:mime-type=text/plain*.htm    = svn:eol-style=native;svn:mime-type=text/html*.html    = svn:eol-style=native;svn:mime-type=text/html*.Java    = svn:eol-style=native;svn:mime-type=text/plain*.js    = svn:eol-style=native;svn:mime-type=text/plain*.mod    = svn:eol-style=native;svn:mime-type=text/plain*.patch    = svn:eol-style=native;svn:mime-type=text/plain*.php    = svn:eol-style=native*.pl    = svn:eol-style=native*.py    = svn:eol-style=native*.sgm    = svn:eol-style=native;svn:mime-type=text/sgml*.sgml    = svn:eol-style=native;svn:mime-type=text/sgml*.svg    = svn:eol-style=native;svn:mime-type=text/xml*.txt    = svn:mime-type=text/plain*.xml    = svn:eol-style=native;svn:mime-type=text/xml*.xsl    = svn:eol-style=native;svn:mime-type=text/xml*.xslt    = svn:eol-style=native;svn:mime-type=text/xmlREADME    = svn:eol-style=native文件添加后,在提交之前,可以通過如下命令查看新增文件的屬性:
$ svn proplist -v *

JavaScript技術讓GoogleCode的SVN下的HTML文件在FireFox下正常顯示.,轉載需保留來源!

鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。

主站蜘蛛池模板: 国内精品伊人久久久久7777人 | 91国内精品线免费播放 | 成年人天堂 | 色综合五月激情综合色一区 | 国产在视频线精品视频2021 | 亚洲影院手机版777点击进入影院 | 亚洲欧洲精品成人久久曰影片 | 国产69页| 婷婷五色 | 久久专区 | 成年人福利视频 | 亚洲午夜国产精品无卡 | 亚洲欧美国产18 | 丁香婷婷六月 | 欧美人禽交视频免费观看 | 韩国一级毛片a级免观看 | 精品在线免费观看 | 国产精品免费_区二区三区观看 | 久久国产精品久久久 | 一本伊人 | 综合网视频 | 77se77亚洲欧美在线大屁股 | 美女被男人扒开下面无遮无挡 | 欧美一级艳片爽快片 | 91草莓视频在线观看 | 国产精品酒店视频 | 天天搞天天色 | 国产欧美91| 亚色在线播放 | 国产精品视频2021 | 五月丁香六月综合缴清无码 | 成年女人免费v片 | 激情五月激情综合网 | 日韩 欧美 国产 亚洲 中文 | 一二三四视频社区在线中文1 | 在线xx视频 | 亚洲欧美性视频 | 婷婷色网站| 精品欧美一区二区三区精品久久 | 色视在线| 国内精品免费视频自在线 |