MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1

(^2) Check for other file types you use that you also need to register as binary to avoid
corruption at check-in. Check for files such as .mat, .mdlp, .slxp, .p, MEX-files
(.mexa64, .mexmaci64, .mexw64), .xlsx, .jpg, .pdf, .docx, etc. Add a line to
the config file for each file type you need. Examples:
.mdlp = svn:mime-type=application/octet-stream
.slxp = svn:mime-type=application/octet-stream
.sldd = svn:mime-type=application/octet-stream
.p = svn:mime-type=application/octet-stream
.mexa64 = svn:mime-type=application/octet-stream
.mexw64 = svn:mime-type=application/octet-stream
.mexmaci64 = svn:mime-type=application/octet-stream
.xlsx = svn:mime-type=application/octet-stream
.docx = svn:mime-type=application/octet-stream
.pdf = svn:mime-type=application/octet-stream
.jpg = svn:mime-type=application/octet-stream
.png = svn:mime-type=application/octet-stream
(^3) Name the file config and save it in the appropriate location:



  • C:\Users\myusername\AppData\Roaming\Subversion\config or
    C:\Documents and Settings\myusername\Application Data
    \Subversion\config on Windows

  • ~/.subversion on Linux or macOS.


After you create the SVN config file, SVN treats new files with these extensions as
binary. If you already have binary files in repositories, see “Register Files Already in
Repositories” on page 32-20.


Update Existing SVN Config File


If you find an existing config file, you have previously installed SVN. Edit the config
file to register files as binary.


(^1) Edit the config file in a text editor.
(^2) Locate the [miscellany] section, and verify the following line enables auto-props
with yes:
enable-auto-props = yes
Ensure that this line is not commented (that is, that it does not start with #). Config
files can contain example lines that are commented out. If there is a # character at
the beginning of the line, delete it.
Set Up SVN Source Control

Free download pdf