MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1

(^3) Locate the [auto-props] section. Ensure that [auto-props] is not commented. If
there is a # character at the beginning, delete it.
(^4) Add the following lines at the end of the [auto-props] section:
.mlx = svn:mime-type=application/octet-stream
.mat = svn:mime-type=application/octet-stream
.fig = svn:mime-type=application/octet-stream
.mdl = svn:mime-type=application/octet-stream
.slx = svn:mime-type= application/octet-stream
These lines prevent SVN from adding annotations to MATLAB and Simulink files on
conflict and from automerging.
(^5) 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 .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 use. 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
(^6) Save the config file.
After you create or update the SVN config file, SVN treats new files as binary. If you
already have files in repositories, register them as described in “Register Files Already in
Repositories” on page 32-20.
Register Files Already in Repositories
CautionChanging your SVN config file does not affect files already committed to an
SVN repository. If a file is not registered as binary, use svn propset to manually
register the files as binary.
32 Source Control Interface

Free download pdf