讓GoogleCode的SVN下的HTML文件在FireFox下正常顯示.
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 *
- 讓你知道什么是 SVN
- 使用svn進(jìn)行版本控制
- VisualSVN Server的配置和使用方法 圖文
- Windows SVN服務(wù)器搭建方法
- 在Fedora 10下配置SVN服務(wù)器的步驟
- linux下安裝配置svn獨(dú)立服務(wù)器的步驟分享
- php操作SVN版本服務(wù)器類代碼
- WINDOWS下搭建SVN服務(wù)器端的步驟分享(Subversion)
- Windows下SVN服務(wù)器搭建方法整理(apache)
- 清除svn文件的bat腳本整理
- 刪除SVN三種方法delSvn(windows+linux)
- shell腳本從SVN推送到多臺(tái)服務(wù)器的代碼
- 解決常見(jiàn)的Eclipse SVN插件報(bào)錯(cuò)方法詳解
- 基于Eclipse中SVN圖標(biāo)不顯示的解決方法
- 基于SVN源碼服務(wù)器搭建(詳細(xì)教程分析)
- 解析zend studio中直接導(dǎo)入svn中的項(xiàng)目的方法步驟
- 關(guān)于svn沖突的解決方法
- 淺析SVN常見(jiàn)問(wèn)題及解決方法
- Windows下VisualSVN Server的安裝與配置方法(圖文)
相關(guān)文章
Windows Live的@live.com域名注冊(cè)漏洞 利用代碼
Windows Live的@live.com域名注冊(cè)漏洞 利用代碼...2006-12-12js實(shí)現(xiàn)貪吃蛇游戲(簡(jiǎn)易版)
這篇文章主要為大家詳細(xì)介紹了js實(shí)現(xiàn)貪吃蛇游戲簡(jiǎn)易版,文中示例代碼介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下2020-09-09ES6知識(shí)點(diǎn)整理之函數(shù)數(shù)組參數(shù)的默認(rèn)值及其解構(gòu)應(yīng)用示例
這篇文章主要介紹了ES6知識(shí)點(diǎn)整理之函數(shù)數(shù)組參數(shù)的默認(rèn)值及其解構(gòu)應(yīng)用,結(jié)合實(shí)例形式分析了ES6函數(shù)數(shù)組參數(shù)解構(gòu)賦值和默認(rèn)值的設(shè)置相關(guān)操作技巧,需要的朋友可以參考下2019-04-04js通過(guò)var定義全局變量與在window對(duì)象上直接定義屬性的區(qū)別說(shuō)明
這篇文章主要介紹了js通過(guò)var定義全局變量與在window對(duì)象上直接定義屬性的區(qū)別說(shuō)明,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。如有錯(cuò)誤或未考慮完全的地方,望不吝賜教2022-09-09JS+php后臺(tái)實(shí)現(xiàn)文件上傳功能詳解
這篇文章主要介紹了JS+php后臺(tái)實(shí)現(xiàn)文件上傳功能,結(jié)合實(shí)例形式分析了javascript前臺(tái)表單數(shù)據(jù)提交與后臺(tái)php文件傳輸處理相關(guān)操作技巧,需要的朋友可以參考下2019-03-03JavaScript Base64 作為文件上傳的實(shí)例代碼解析
這篇文章主要介紹了JavaScript Base64 作為文件上傳的實(shí)例代碼解析,非常不錯(cuò),具有參考借鑒價(jià)值,需要的朋友可以參考下2017-02-02微信小程序MUI側(cè)滑導(dǎo)航菜單示例(Popup彈出式,左側(cè)不動(dòng),右側(cè)滑動(dòng))
這篇文章主要介紹了微信小程序MUI側(cè)滑導(dǎo)航菜單,結(jié)合實(shí)例形式分析了微信小程序Popup彈出式,左側(cè)不動(dòng),右側(cè)滑動(dòng)菜單相關(guān)實(shí)現(xiàn)技巧與注意事項(xiàng),需要的朋友可以參考下2019-01-01