This wiki is archived and useful information is being migrated to the main bzflag.org website

Difference between revisions of "Auto-props"

From BZFlagWiki
Jump to: navigation, search
(include mime types in autoprops)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Developers should make sure their auto-props are set correctly before committing to [[SVN]].  This helps preserve the correct line endings across platforms.  This is the "standard" auto-props section we are using (you may of course set your own if you prefer).  You'll need to edit your subversion config file(s), which varies depending on platform and Subversion client.
+
Developers should make sure their Subversion auto-props are set correctly before committing to [[SVN]].  This helps preserve the correct line endings across platforms.  This is the "standard" auto-props section we are using (you may of course set your own if you prefer).  You'll need to edit your config file(s), which varies depending on platform and Subversion client.
  
For UNIX-like platforms, edit your ''~/.subversion/config'' file to set the auto-props. For Windows Vista, the path is ''C:\Users\YOUR_USERNAME\AppData\Roaming\Subversion\config'' And for Windows XP, the path is ''C:\Documents and Settings\YOUR_USERNAME\Application Data\Subversion\config''  Also, please be sure that you uncomment the '''enable-auto-props''' option and set it to yes.
+
For UNIX-like platforms, edit your ''~/.subversion/config'' file to set the auto-props. For Windows Vista, the path is ''C:\Users\YOUR_USERNAME\AppData\Roaming\Subversion\config'' And for Windows XP, the path is ''C:\Documents and Settings\YOUR_USERNAME\Application Data\Subversion\config''  Also, please be sure that you uncomment the '''enable-auto-props''' option and set it to yes. An example subversion config files is shown in following:
  
 
<pre>
 
<pre>
Line 12: Line 12:
 
### Note that auto-props functionality must be enabled, which
 
### Note that auto-props functionality must be enabled, which
 
### is typically done by setting the 'enable-auto-props' option.
 
### is typically done by setting the 'enable-auto-props' option.
*.c = svn:eol-style=native
+
*.c = svn:eol-style=native;svn:mime-type=text/plain
*.cpp = svn:eol-style=native
+
*.cpp = svn:eol-style=native;svn:mime-type=text/plain
*.cxx = svn:eol-style=native
+
*.cxx = svn:eol-style=native;svn:mime-type=text/plain
*.h = svn:eol-style=native
+
*.def = svn:eol-style=native;svn:mime-type=text/plain
*.pl = svn:eol-style=native
+
*.h = svn:eol-style=native;svn:mime-type=text/plain
*.py = svn:eol-style=native
+
*.pl = svn:eol-style=native;svn:mime-type=text/plain
*.php = svn:eol-style=native
+
*.py = svn:eol-style=native;svn:mime-type=text/plain
 +
*.php = svn:eol-style=native;svn:mime-type=text/plain
  
*.po = svn:eol-style=native
+
*.po = svn:eol-style=native;svn:mime-type=text/plain
*.am = svn:eol-style=native
+
*.am = svn:eol-style=native;svn:mime-type=text/plain
*.ac = svn:eol-style=native
+
*.ac = svn:eol-style=native;svn:mime-type=text/plain
*.in = svn:eol-style=native
+
*.in = svn:eol-style=native;svn:mime-type=text/plain
*.m4 = svn:eol-style=native
+
*.m4 = svn:eol-style=native;svn:mime-type=text/plain
  
*.dsp = svn:eol-style=CRLF
+
*.dsp = svn:eol-style=CRLF;svn:mime-type=text/plain
*.dsw = svn:eol-style=CRLF
+
*.dsw = svn:eol-style=CRLF;svn:mime-type=text/plain
*.sln = svn:eol-style=CRLF
+
*.sln = svn:eol-style=CRLF;svn:mime-type=text/xml
*.vcproj = svn:eol-style=CRLF
+
*.vcproj = svn:eol-style=CRLF;svn:mime-type=text/xml
*.nsi = svn:eol-style=CRLF
+
*.nsi = svn:eol-style=CRLF;svn:mime-type=text/plain
*.manifest = svn:eol-style=CRLF
+
*.manifest = svn:eol-style=CRLF;svn:mime-type=text/xml
  
*.sh = svn:eol-style=native;svn:executable
+
*.sh = svn:eol-style=native;svn:mime-type=text/plain;svn:executable
 +
*.bat = svn:eol-style=native;svn:mime-type=text/plain
  
 
*.txt = svn:eol-style=native;svn:mime-type=text/plain
 
*.txt = svn:eol-style=native;svn:mime-type=text/plain
 
README = svn:eol-style=native;svn:mime-type=text/plain
 
README = svn:eol-style=native;svn:mime-type=text/plain
 
*.html = svn:eol-style=native;svn:mime-type=text/html
 
*.html = svn:eol-style=native;svn:mime-type=text/html
 +
*.css = svn:eol-style=native;svn:mime-type=text/css
 
*.xml = svn:eol-style=native;svn:mime-type=text/xml
 
*.xml = svn:eol-style=native;svn:mime-type=text/xml
 
*.bzw = svn:eol-style=native
 
*.bzw = svn:eol-style=native
  
 
*.xpm = svn:eol-style=native;svn:mime-type=image/x-xpm
 
*.xpm = svn:eol-style=native;svn:mime-type=image/x-xpm
*.bmp = svn:mime-type=image/x-bmp
+
*.svg = svn:eol-style=native;svn:mime-type=image/svg+xml
 +
*.bmp = svn:mime-type=image/bmp
 
*.png = svn:mime-type=image/png
 
*.png = svn:mime-type=image/png
 
*.jpg = svn:mime-type=image/jpeg
 
*.jpg = svn:mime-type=image/jpeg
 
*.ogg = svn:mime-type=application/ogg
 
*.ogg = svn:mime-type=application/ogg
 
*.wav = svn:mime-type=audio/x-wav
 
*.wav = svn:mime-type=audio/x-wav
*.ttf = svn:mime-type=font/ttf
+
*.ttf = svn:mime-type=application/octet-stream
*.ico = svn:mime-type=image/ico
+
*.ico = svn:mime-type=application/octet-stream
 
*.rgb = svn:mime-type=image/x-rgb
 
*.rgb = svn:mime-type=image/x-rgb
 
</pre>
 
</pre>
  
 
[[Category:Development]]
 
[[Category:Development]]

Latest revision as of 07:21, 10 May 2010

Developers should make sure their Subversion auto-props are set correctly before committing to SVN. This helps preserve the correct line endings across platforms. This is the "standard" auto-props section we are using (you may of course set your own if you prefer). You'll need to edit your config file(s), which varies depending on platform and Subversion client.

For UNIX-like platforms, edit your ~/.subversion/config file to set the auto-props. For Windows Vista, the path is C:\Users\YOUR_USERNAME\AppData\Roaming\Subversion\config And for Windows XP, the path is C:\Documents and Settings\YOUR_USERNAME\Application Data\Subversion\config Also, please be sure that you uncomment the enable-auto-props option and set it to yes. An example subversion config files is shown in following:

### 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.
*.c = svn:eol-style=native;svn:mime-type=text/plain
*.cpp = svn:eol-style=native;svn:mime-type=text/plain
*.cxx = svn:eol-style=native;svn:mime-type=text/plain
*.def = svn:eol-style=native;svn:mime-type=text/plain
*.h = svn:eol-style=native;svn:mime-type=text/plain
*.pl = svn:eol-style=native;svn:mime-type=text/plain
*.py = svn:eol-style=native;svn:mime-type=text/plain
*.php = svn:eol-style=native;svn:mime-type=text/plain

*.po = svn:eol-style=native;svn:mime-type=text/plain
*.am = svn:eol-style=native;svn:mime-type=text/plain
*.ac = svn:eol-style=native;svn:mime-type=text/plain
*.in = svn:eol-style=native;svn:mime-type=text/plain
*.m4 = svn:eol-style=native;svn:mime-type=text/plain

*.dsp = svn:eol-style=CRLF;svn:mime-type=text/plain
*.dsw = svn:eol-style=CRLF;svn:mime-type=text/plain
*.sln = svn:eol-style=CRLF;svn:mime-type=text/xml
*.vcproj = svn:eol-style=CRLF;svn:mime-type=text/xml
*.nsi = svn:eol-style=CRLF;svn:mime-type=text/plain
*.manifest = svn:eol-style=CRLF;svn:mime-type=text/xml

*.sh = svn:eol-style=native;svn:mime-type=text/plain;svn:executable
*.bat = svn:eol-style=native;svn:mime-type=text/plain

*.txt = svn:eol-style=native;svn:mime-type=text/plain
README = svn:eol-style=native;svn:mime-type=text/plain
*.html = svn:eol-style=native;svn:mime-type=text/html
*.css = svn:eol-style=native;svn:mime-type=text/css
*.xml = svn:eol-style=native;svn:mime-type=text/xml
*.bzw = svn:eol-style=native

*.xpm = svn:eol-style=native;svn:mime-type=image/x-xpm
*.svg = svn:eol-style=native;svn:mime-type=image/svg+xml
*.bmp = svn:mime-type=image/bmp
*.png = svn:mime-type=image/png
*.jpg = svn:mime-type=image/jpeg
*.ogg = svn:mime-type=application/ogg
*.wav = svn:mime-type=audio/x-wav
*.ttf = svn:mime-type=application/octet-stream
*.ico = svn:mime-type=application/octet-stream
*.rgb = svn:mime-type=image/x-rgb