Enable auto-props for SVN client

You will need edit the subversion config file.

In Linux/Cygwin, place this file in ~/.subversion/config.
In Windows, place this file in C:\Documents and Settings\%USERNAME%\Application Data\Subversion\config

In Windows for Eclipse:

In Eclipse you’ve got to set the path to your config file:

Window > Preferences > Team > SVN > “Configuration Location” > “Use directory”

To enable

[miscellany]
### Set enable-auto-props to 'yes' to enable automatic properties
### for 'svn add' and 'svn import', it defaults to 'no'.
### Automatic properties are defined in the section 'auto-props'.
enable-auto-props = yes

[auto-props]
*.rb = svn:keywords=Id Author Revision HeadURL Date

[etc specific]
*.conf

Add the following to it:

[auth]
# store-passwords = no
# store-auth-creds = no

[helpers]
# editor-cmd = editor (vi, emacs, notepad, etc.)
# diff-cmd = diff_program (diff, gdiff, etc.)
# diff3-cmd = diff3_program (diff3, gdiff3, etc.)
# diff3-has-program-arg = [true | false]

[tunnels]
# ssh = c:\ssh\plink.exe
# rsh = rsh
# rsh = /path/to/rsh -l myusername

[miscellany]
# global-ignores = *.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* .DS_Store
# log-encoding = latin1
# use-commit-times = yes
# no-unlock = yes
enable-auto-props = yes

[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
# *.cpp = svn:eol-style=native
# *.h = svn:eol-style=native
# *.dsp = svn:eol-style=CRLF
# *.dsw = svn:eol-style=CRLF
# *.sh = svn:eol-style=native;svn:executable
# *.txt = svn:eol-style=native
# *.png = svn:mime-type=image/png
# *.jpg = svn:mime-type=image/jpeg
# Makefile = svn:eol-style=native

# etc specific
*.conf       = svn:eol-style=native; svn:mime-type=text/plain
*.rules      = svn:eol-style=native; svn:mime-type=text/plain
*.repo       = svn:eol-style=native; svn:mime-type=text/plain

# Scriptish formats
*.bat        = svn:eol-style=native; svn:mime-type=text/plain
*.bsh        = svn:eol-style=native; svn:mime-type=text/x-beanshell
*.cgi        = svn:eol-style=native; svn:mime-type=text/plain
*.cmd        = svn:eol-style=native; svn:mine-type=text/plain
*.js         = svn:eol-style=native; svn:mime-type=text/javascript
*.php        = svn:eol-style=native; svn:mime-type=text/x-php
*.phtml      = svn:eol-style=native; svn:mime-type=text/x-php
*.pl         = svn:eol-style=native; svn:mime-type=text/x-perl; svn:executable
*.pm         = svn:eol-style=native; svn:mime-type=text/x-perl
*.py         = svn:eol-style=native; svn:mime-type=text/x-python; svn:executable
*.sh         = svn:eol-style=native; svn:mime-type=text/x-sh; svn:executable
configure    = svn:eol-style=native; svn:mime-type=text/x-sh; svn:executable

# Image formats
*.bmp        = svn:mime-type=image/bmp
*.gif        = svn:mime-type=image/gif
*.ico        = svn:mime-type=image/ico
*.jpeg       = svn:mime-type=image/jpeg
*.jpg        = svn:mime-type=image/jpeg
*.png        = svn:mime-type=image/png
*.tif        = svn:mime-type=image/tiff
*.tiff       = svn:mime-type=image/tiff
*.svg        = svn:eol-style=native; svn:mime-type=image/svg+xml

# Data formats
*.pdf        = svn:mime-type=application/pdf
*.avi        = svn:mime-type=video/avi
*.doc        = svn:mime-type=application/msword
*.dsp        = svn:eol-style=CRLF
*.dsw        = svn:eol-style=CRLF
*.eps        = svn:mime-type=application/postscript
*.gz         = svn:mime-type=application/gzip
*.mov        = svn:mime-type=video/quicktime
*.mp3        = svn:mime-type=audio/mpeg
*.ppt        = svn:mime-type=application/vnd.ms-powerpoint
*.ps         = svn:mime-type=application/postscript
*.psd        = svn:mime-type=application/photoshop
*.rdf        = svn:eol-style=native;svn:keywords=Id
*.rss        = svn:eol-style=native;svn:keywords=Id
*.rtf        = svn:mime-type=text/rtf
*.sln       = svn:eol-style=CRLF;svn:mime-type=text/xml
*.swf        = svn:mime-type=application/x-shockwave-flash
*.tgz        = svn:mime-type=application/gzip
*.vcproj    = svn:eol-style=CRLF;svn:mime-type=text/xml
*.wav        = svn:mime-type=audio/wav
*.xls        = svn:mime-type=application/vnd.ms-excel
*.zip        = svn:mime-type=application/zip

# Text formats
.htaccess    = svn:eol-style=native; svn:mime-type=text/plain
*.bbk        = svn:eol-style=native; svn:mime-type=text/xml
*.cmake      = svn:eol-style=native; svn:mime-type=text/plain
*.css        = svn:eol-style=native; svn:mime-type=text/css
*.csv        = svn:eol-style=native; svn:mime-type=text/css
*.dtd        = svn:eol-style=native; svn:mime-type=text/xml
*.dist       = svn:eol-style=native; svn:mime-type=text/xml
*.htm        = svn:eol-style=native; svn:mime-type=text/html
*.html       = svn:eol-style=native; svn:mime-type=text/html
*.ini        = svn:eol-style=native; svn:mime-type=text/plain
*.mak        = svn:eol-style=native; svn:mime-type=text/plain
*.mbox         = svn:eol-style=native; svn:mime-type=text/plain
*.qbk        = svn:eol-style=native; svn:mime-type=text/plain
*.po         = svn:eol-style=native; svn:mime-type=text/plain
*.response   = svn:eol-style=native; svn:mime-type=text/plain
*.rst        = svn:eol-style=native; svn:mime-type=text/plain
*.sql        = svn:eol-style=native; svn:mime-type=text/x-sql
*.template   = svn:eol-style=native; svn:mime-type=text/plain
*.tmx        = svn:eol-style=native; svn:mime-type=text/plain
*.ts         = 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
*.tpl        = svn:eol-style=native; svn:mime-type=text/plain
*.xhtml      = svn:eol-style=native; svn:mime-type=text/xhtml+xml
*.xliff      = svn:eol-style=native; svn:mime-type=text/plain
*.xml        = svn:eol-style=native; svn:mime-type=text/xml
*.xsd        = 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/xml
*.xul        = svn:eol-style=native; svn:mime-type=text/xul
*.yml        = svn:eol-style=native; svn:mime-type=text/plain
configure    = svn:eol-style=native; svn:mime-type=text/plain
CHANGES      = svn:eol-style=native; svn:mime-type=text/plain
COPYING      = svn:eol-style=native; svn:mime-type=text/plain
INSTALL      = svn:eol-style=native; svn:mime-type=text/plain
INBOX        = svn:eol-style=native; svn:mime-type=text/plain
Jamfile      = svn:eol-style=native; svn:mime-type=text/plain
Jamroot      = svn:eol-style=native; svn:mime-type=text/plain
Jamfile.v2   = svn:eol-style=native; svn:mime-type=text/plain
Jamrules     = svn:eol-style=native; svn:mime-type=text/plain
Makefile*    = svn:eol-style=native; svn:mime-type=text/plain
README       = svn:eol-style=native; svn:mime-type=text/plain

# Code formats
*.c          = svn:eol-style=native; svn:mime-type=text/plain
*.cpp        = svn:eol-style=native; svn:mime-type=text/plain
*.h          = svn:eol-style=native; svn:mime-type=text/plain
*.hpp        = svn:eol-style=native; svn:mime-type=text/plain
*.ipp        = svn:eol-style=native; svn:mime-type=text/plain
*.tpp        = svn:eol-style=native; svn:mime-type=text/plain
*.jam        = svn:eol-style=native; svn:mime-type=text/plain
*.java       = svn:eol-style=native; svn:mime-type=text/plain

For Tortoise SVN

First, you must open the dialogue box for Tortoise, and find the settings option

Tortoise Settings

Second, click edit

Third, clear our the contents, then cut and paste the above config file into the editor, and finally go to File -> Save

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s