How to use command line svn with builtin MATLAB integration?

조회 수: 26 (최근 30일)
Julian
Julian 2021년 3월 5일
답변: Per-Anders Ekstrom 2023년 4월 2일
MATLAB ships with a built in source controle integrations with svn or git.
I am using svn, which works fine in MATLAB via the filebrowser.
Can I invoke svn by a command line prompt? The answer here suggests it should be possible
Also the MATLAB help gives an example of the command to manually register binary files:
svn propset svn:mime-type application/octet-stream binaryfilename
But how can I use this svn command? svn does not work at the MATLAB prompt, nor at the system prompt. I searched for .exe files containing svn on my system disk but could not find it. I have not attempted to install svn myself - I am relying on the instance that comes with a MATLAB install.
Thanks if you can help!

답변 (2개)

Chidvi Modala
Chidvi Modala 2021년 3월 8일
You might need to install an SVN command-line client to use the "Command-Line SVN Integration" with MATLAB. You may refer to the SVN Source Control Options in this documentation
  댓글 수: 1
Julian
Julian 2021년 3월 10일
Sorry not to respond sooner but thanks for this doc pointer.
I arrived at Answers having originally read the doc page you link to. I couldn't make use of the example there:
svn propset svn:mime-type application/octet-stream binaryfilename
I previously have installed an svn client in the days when MATLAB did not have inbuilt source control integration, but as am now enjoying the integrated source control I thought perhaps I could skip this step. Besides which I was concerned about the possibility of a conflict between an installation I added and that which ships with MATLAB.
Underneath all this I had created a config file to register binary files with svn (following the instructions at the doc you link to), but have accidentally ended up with a config.m file instead of a config file because I was using the MATLAB editor. So I was interested in whether I could check at the command line whether the configuration was working with config.m instead of config!

댓글을 달려면 로그인하십시오.


Per-Anders Ekstrom
Per-Anders Ekstrom 2023년 4월 2일
Maybe a little late for you Julian, but this code might help anybody that wants to perform SVN-operations from the command line. The code make use of the already built-in subversion support (SVNKit) that is used by the graphical user interface, and thus, no installing of any external SVN command-line clients is required.

카테고리

Help CenterFile Exchange에서 Source Control에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by