Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

SVN Tips

Batch Property Setting on Command Line

(based on from http://www.dsource.org/forums/viewtopic.php?t=733)

On the Windows command line, it'd go something like this:

path = c:\subversion\bin
cd \svn_checked_out\my_project
svn propset -R svn:mime-type text/html trunk\Docs\*.html
svn commit -m "Changed mime-types on html"

Configuring TortoiseSVN to Add the Property when the File is added

(from http://www.dsource.org/forums/viewtopic.php?t=1046)

Go to TortoiseSVN:settings:Subversion Config File: Edit.

Remove the commenting (# marks) for the following lines:

[miscellany]
enable-auto-props = yes
[auto-props]
*.html = svn:mime-type=text/html

Important! The following line must remain commented out:

#*.html = svn:mime-type=text/htm

Only applies to adds, not to updates.