利用Sourceforge 或者 google code的svn显示html页面

368 views

Published on

不只适用与 google code 还适用于sourceforge.net。

利用sourceforge 或者 Google Code的SVN显示Html页面
http://www.ossez.com/forum.php?mod=viewthread&tid=18774&fromuid=426

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
368
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

利用Sourceforge 或者 google code的svn显示html页面

  1. 1. 利用 sourceforge 或者 Google Code的 SVN 显示 Html 页面 (OSSEZ) CHS技术参考, 2012-05-24Author: YUCHENG HU, OSSEZ LLCOSSEZ.COM-v1.2-Technology.ott 2012-05-24版权所有 © OSSEZ LLC 2006 - 2012 1/7
  2. 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
  3. 3. 目 录1 配置.............................................................................................................................................. 4 1.1 单一定义文件........................................................................................................................ 4 1.2 设置所有文件........................................................................................................................ 5OSSEZ.COM-v1.2-Technology.ott 2012-05-24版权所有 © OSSEZ LLC 2006 - 2012 3/7
  4. 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. 5. 1 *.htm* = svn:mime-type=text/html2 *.png = svn:mime-type=image/png3 *.jpg = svn:mime-type=image/jpeg4 *.gif = svn:mime-type=image/gif5 *.css = svn:mime-type=text/css6 *.js = svn:mime-type=text/javascript7 *.xml = svn:mime-type=text/xml 1.2 设置所有文件 点右键进入【TortoiseSVN】的【设置】会弹出设置选线卡【常规设置】里的右边 右下角位置有个【编辑】按键,点击编辑对全局配置文件进行编辑。 查找配置文件中[miscellany]在下面加入: 8 [miscellany] 9 global-ignores = *.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* .DS_Store .cvsignore10 Thumbs.db CVS11 use-commit-times = yes12 enable-auto-props = yes 查找配置文件中[auto-props]在下面加入: OSSEZ.COM-v1.2-Technology.ott 2012-05-24 版权所有 © OSSEZ LLC 2006 - 2012 5/7
  6. 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 * and18 ### ?). All entries which match will be applied to the file.19 ### Note that auto-props functionality must be enabled, which20 ### is typically done by setting the enable-auto-props option.2122 ##################################################23 ### Binary files24 ##################################################25 *.bmp = svn:mime-type=image/bmp26 *.gif = svn:mime-type=image/gif27 *.gz = svn:mime-type=application/x-gzip28 *.ico = svn:mime-type=image/x-icon29 *.jar = svn:mime-type=application/zip30 *.jpg = svn:mime-type=image/jpeg31 *.pdf = svn:mime-type=application/pdf32 *.png = svn:mime-type=image/png33 *.ps = svn:mime-type=application/postscript34 *.tif = svn:mime-type=image/tiff35 *.vsd = svn:mime-type=application/octet-stream36 *.zip = svn:mime-type=application/zip3738 ##################################################39 ### Text files, OS dependent eol-style40 ##################################################41 *.dsp = svn:eol-style=CRLF42 *.dsw = svn:eol-style=CRLF4344 *.mm = svn:eol-style=LF;svn:mime-type=text/xml45 *.sh = svn:eol-style=LF;svn:executable46 Makefile = svn:eol-style=LF4748 ##################################################49 ### Text files, eol-style is native50 ##################################################51 *.c = svn:eol-style=native;svn:mime-type=text/plain52 *.cpp = svn:eol-style=native;svn:mime-type=text/plain53 *.css = svn:eol-style=native;svn:mime-type=text/css54 *.diff = svn:eol-style=native;svn:mime-type=text/plain55 *.dsl = svn:eol-style=native;svn:mime-type=text/sgml56 *.dtd = svn:eol-style=native;svn:mime-type=text/plain57 *.ent = svn:eol-style=native;svn:mime-type=text/plain58 *.gml = svn:eol-style=native;svn:mime-type=text/sgml59 *.h = svn:eol-style=native;svn:mime-type=text/plain60 *.htm = svn:eol-style=native;svn:mime-type=text/html61 *.html = svn:eol-style=native;svn:mime-type=text/html62 *.java = svn:eol-style=native;svn:mime-type=text/plain63 *.js = svn:eol-style=native;svn:mime-type=text/plain64 *.mod = svn:eol-style=native;svn:mime-type=text/plain65 *.patch = svn:eol-style=native;svn:mime-type=text/plain66 *.php = svn:eol-style=native67 *.pl = svn:eol-style=native68 *.py = svn:eol-style=native69 *.sgm = svn:eol-style=native;svn:mime-type=text/sgml70 *.sgml = svn:eol-style=native;svn:mime-type=text/sgml71 *.svg = svn:eol-style=native;svn:mime-type=text/xml72 *.txt = svn:mime-type=text/plain73 *.xml = svn:eol-style=native;svn:mime-type=text/xml74 *.xsl = svn:eol-style=native;svn:mime-type=text/xml75 *.xslt = svn:eol-style=native;svn:mime-type=text/xml76 README = svn:eol-style=native OSSEZ.COM-v1.2-Technology.ott 2012-05-24 版权所有 © OSSEZ LLC 2006 - 2012 6/7
  7. 7. OSSEZ.COM-v1.2-Technology.ott 2012-05-24版权所有 © OSSEZ LLC 2006 - 2012 7/7

×