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 *