Display HTML files under SVN of GoogleCode in FireFox normally.

Source: Internet
Author: User
Tags eol svn client

Today, I tried to find that HTML in SVN provided by GoogleCode is displayed as an HTML source file in Firefox.
Google found the answer:
If the display is normal, you need to set SVN: mime-type to text/html. (http://blog.pluskid.org /? P = 70)
SVN clients Support automatic configuration by the following (http://www.worldhello.net/wiki/SVN)
--------------------------------------
6.2 new file attribute settings?
The Hooks script of Whodo SVN checks the attributes of the newly added file. The svn: mime-type and/or svn: eol-style attributes are not set. submission is prohibited.
However, after each file is added, it is too cumbersome to execute commands similar to "svn ps svn: eol-style! Fortunately, the SVN client (command line or TortoiseSVN) supports the automatic attribute function. Attributes are automatically added to the new file.

6.2.1 config configuration file
Enabling and setting automatic attributes is completed in the config configuration file. Location of the config file:
Unix platform
The location of the global configuration file is/etc/subversion/config. The configuration file in each user's home directory overwrites the settings in the global configuration file :~ /. Subversion/config;
Windows Platform
The Registry may contain relevant settings: HKLM \ Software \ Tigris.org \ Subversion \ Config, and HKCU \ Software \ Tigris.org \ Subversion \ Config. But the file has a higher priority. Global configuration file: % ALLUSERSPROFILE % \ Application Data \ Subversion \ config, user profile: % APPDATA % \ Subversion \ config
6.2.2 enable auto-props
Modify the config configuration and enable 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 file name-based auto-props settings
The automatic attribute settings are matched based on the file name. Modify the config file and add new configurations as follows:
### Section for processing ing 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 *. sealing Method = 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 after the file is added, before submission, you can run the following command to view the attributes of the new file:
$ Svn proplist-v *

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.