Mais conteúdo relacionado
利用Sourceforge 或者 google code的svn显示html页面
- 1. 利用 sourceforge 或者 Google Code
的 SVN 显示 Html 页面 (OSSEZ) CHS
技术参考, 2012-05-24
Author:
YUCHENG HU, OSSEZ LLC
OSSEZ.COM-v1.2-Technology.ott 2012-05-24
版权所有 © OSSEZ LLC 2006 - 2012 1/7
- 2. 备忘
Copyright © OSSEZ LLC 2006–2011. 版权所有
技术支持:
http://www.ossez.com
http://wiki.ossez.com
知识产权:
OSS 计算技术
OSSEZ (中国) 信息技术有限公司及作者持有本文档的所有权
相关工作:
技术文档格式化版本
版本历史:
Version Date Author Description
1.1 2012-05-24 YUCHENG HU 创建新版本
电子版:
N/A
http://www.ossez.com
ODT 发行版本
OSSEZ.COM-v1.2-Technology.ott 2012-05-24
版权所有 © OSSEZ LLC 2006 - 2012 2/7
- 4. 1 配置
不只适用与 google code 还适用于 sourceforge.net。
演示地址 googlecode:
https://ossdocs.googlecode.com/svn/trunk/xhtml/enterprise-erp-
crm/vtiger/vtiger_tutorials/mainp.html
适用 TortoiseSVN:
1.1 单一定义文件
右键你想修改属性的 html 文件,然后选【TortoiseSVN】→【Properties (中文一
般为【属性】)】然后就会看到 Properties 界面,然后点击【新建(快捷键 N)】
选择【高级(快捷键 A)】然后弹出高级选项卡,选择属性【svn:mime-type】,
然后添加值为 text/html,然后确定重新同步下就可以了。
OSSEZ.COM-v1.2-Technology.ott 2012-05-24
版权所有 © OSSEZ LLC 2006 - 2012 4/7
- 5. 1 *.htm* = svn:mime-type=text/html
2 *.png = svn:mime-type=image/png
3 *.jpg = svn:mime-type=image/jpeg
4 *.gif = svn:mime-type=image/gif
5 *.css = svn:mime-type=text/css
6 *.js = svn:mime-type=text/javascript
7 *.xml = svn:mime-type=text/xml
1.2 设置所有文件
点右键进入【TortoiseSVN】的【设置】会弹出设置选线卡【常规设置】里的右边
右下角位置有个【编辑】按键,点击编辑对全局配置文件进行编辑。
查找配置文件中[miscellany]在下面加入:
8 [miscellany]
9 global-ignores = *.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* .DS_Store .cvsignore
10 Thumbs.db CVS
11 use-commit-times = yes
12 enable-auto-props = yes
查找配置文件中[auto-props]在下面加入:
OSSEZ.COM-v1.2-Technology.ott 2012-05-24
版权所有 © OSSEZ LLC 2006 - 2012 5/7
- 6. 13 ### Section for configuring automatic properties.
14 [auto-props]
15 ### The format of the entries is:
16 ### file-name-pattern = propname[=value][;propname[=value]...]
17 ### The file-name-pattern can contain wildcards (such as '*' and
18 ### '?'). All entries which match will be applied to the file.
19 ### Note that auto-props functionality must be enabled, which
20 ### is typically done by setting the 'enable-auto-props' option.
21
22 ##################################################
23 ### Binary files
24 ##################################################
25 *.bmp = svn:mime-type=image/bmp
26 *.gif = svn:mime-type=image/gif
27 *.gz = svn:mime-type=application/x-gzip
28 *.ico = svn:mime-type=image/x-icon
29 *.jar = svn:mime-type=application/zip
30 *.jpg = svn:mime-type=image/jpeg
31 *.pdf = svn:mime-type=application/pdf
32 *.png = svn:mime-type=image/png
33 *.ps = svn:mime-type=application/postscript
34 *.tif = svn:mime-type=image/tiff
35 *.vsd = svn:mime-type=application/octet-stream
36 *.zip = svn:mime-type=application/zip
37
38 ##################################################
39 ### Text files, OS dependent eol-style
40 ##################################################
41 *.dsp = svn:eol-style=CRLF
42 *.dsw = svn:eol-style=CRLF
43
44 *.mm = svn:eol-style=LF;svn:mime-type=text/xml
45 *.sh = svn:eol-style=LF;svn:executable
46 Makefile = svn:eol-style=LF
47
48 ##################################################
49 ### Text files, eol-style is native
50 ##################################################
51 *.c = svn:eol-style=native;svn:mime-type=text/plain
52 *.cpp = svn:eol-style=native;svn:mime-type=text/plain
53 *.css = svn:eol-style=native;svn:mime-type=text/css
54 *.diff = svn:eol-style=native;svn:mime-type=text/plain
55 *.dsl = svn:eol-style=native;svn:mime-type=text/sgml
56 *.dtd = svn:eol-style=native;svn:mime-type=text/plain
57 *.ent = svn:eol-style=native;svn:mime-type=text/plain
58 *.gml = svn:eol-style=native;svn:mime-type=text/sgml
59 *.h = svn:eol-style=native;svn:mime-type=text/plain
60 *.htm = svn:eol-style=native;svn:mime-type=text/html
61 *.html = svn:eol-style=native;svn:mime-type=text/html
62 *.java = svn:eol-style=native;svn:mime-type=text/plain
63 *.js = svn:eol-style=native;svn:mime-type=text/plain
64 *.mod = svn:eol-style=native;svn:mime-type=text/plain
65 *.patch = svn:eol-style=native;svn:mime-type=text/plain
66 *.php = svn:eol-style=native
67 *.pl = svn:eol-style=native
68 *.py = svn:eol-style=native
69 *.sgm = svn:eol-style=native;svn:mime-type=text/sgml
70 *.sgml = svn:eol-style=native;svn:mime-type=text/sgml
71 *.svg = svn:eol-style=native;svn:mime-type=text/xml
72 *.txt = svn:mime-type=text/plain
73 *.xml = svn:eol-style=native;svn:mime-type=text/xml
74 *.xsl = svn:eol-style=native;svn:mime-type=text/xml
75 *.xslt = svn:eol-style=native;svn:mime-type=text/xml
76 README = svn:eol-style=native
OSSEZ.COM-v1.2-Technology.ott 2012-05-24
版权所有 © OSSEZ LLC 2006 - 2012 6/7