天天躁日日躁狠狠躁AV麻豆-天天躁人人躁人人躁狂躁-天天澡夜夜澡人人澡-天天影视香色欲综合网-国产成人女人在线视频观看-国产成人女人视频在线观看

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

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

6.2.1 config 配置文件
啟用和設(shè)置自動(dòng)屬性,是在 config 配置文件中完成的。 config 配置文件的位置:
Unix 平臺(tái)
全局的配置文件位置為:/etc/subversion/config; 每個(gè)用戶主目錄還有配置文件覆蓋全局配置文件的設(shè)置:~/.subversion/config;
Windows 平臺(tái)
注冊(cè)表中可能包含相應(yīng)的設(shè)置:HKLM/Software/Tigris.org/Subversion/Config,以及 HKCU/Software/Tigris.org/Subversion/Config。 不過(guò)文件的優(yōu)先級(jí)更高。全局配置文件:%ALLUSERSPROFILE%/Application Data/Subversion/config,用戶個(gè)人配置文件:%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 設(shè)置
自動(dòng)屬性的設(shè)置,是根據(jù)文件名來(lái)匹配的。修改 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文件添加后,在提交之前,可以通過(guò)如下命令查看新增文件的屬性:
$ svn proplist -v *

JavaScript技術(shù)讓GoogleCode的SVN下的HTML文件在FireFox下正常顯示.,轉(zhuǎn)載需保留來(lái)源!

鄭重聲明:本文版權(quán)歸原作者所有,轉(zhuǎn)載文章僅為傳播更多信息之目的,如作者信息標(biāo)記有誤,請(qǐng)第一時(shí)間聯(lián)系我們修改或刪除,多謝。

主站蜘蛛池模板: 国产性夜夜性夜夜爽91 | 《乳色吐息》无删减版在线观看 | 99久久免费视频6 | 我与恶魔的h生活ova | 日韩精品免费一区二区 | 99在线精品免费视频 | 麻豆国产精品AV色拍综合 | 三级视频黄色 | 国产AV精品国语对白国产 | YY8848高清私人影院 | 女人爽到高潮嗷嗷叫视频 | 午夜A级理论片左线播放 | RUNAWAY韩国动漫免费官网版 | 欧美日韩久久久精品A片 | 香蕉视频国产精品 | 双腿打开揉弄高潮H苏安安秦慕深 | 国产免费久久爱久久啪 | 亚洲精品天堂在线 | 日本伦子欲 | 港台三级大全 | 九九热在线视频 | 欧美特级午夜一区二区三区 | xxxx88| 国产一浮力影院 | 恋老视频 国产国佬 | 久久伊人青青 | 多男同时插一个女人8p | 黄色小说男男 | 亚洲午夜久久久久中文字幕 | 色多多污污在线播放免费 | 国产午夜精品美女免费大片 | 亚洲伊人久久综合影院2021 | 中文字幕无码亚洲字幕成A人蜜桃 | 亚洲免费在线观看 | 国产精品无码无卡毛片不卡视 | 综合久久伊人 | 国产精品亚洲AV色欲在线观看 | 亚洲一区精品在线 | 丰满人妻按磨HD | 国产午夜精品视频在线播放 | 国产精品久久一区二区三区蜜桃 |