SubWCRev.exe - Won't Work on Files in My Documents
조회 수: 3 (최근 30일)
이전 댓글 표시
I want to check the SVN revision of a file in my working copy. I found some helpful code elsewhere on Matlab Exchange:
http://www.mathworks.com/matlabcentral/fileexchange/29225-check-subversion-version-control-status http://www.mathworks.com/matlabcentral/fileexchange/47520-subwcrev-m
However, when I try evalc on a directory or file in 'My Documents', SubWCRev.exe doesn't seem to be able to identify the rev... I suspect it has something to do with admin privileges. It'll find the rev just fine on a copy of the repo stored elsewhere on my PC (e.g. root directory, Desktop, etc). Any ideas? Here's what I'm doing:
file = 'C:\Users\myusername\Documents\myrepository';
subwcrev = 'SubWCRev.exe';
results = evalc(sprintf('!%s %s',subwcrev,file));
Thanks in advance!
댓글 수: 1
채택된 답변
추가 답변 (1개)
Steven Lord
2015년 9월 17일
Which release of MATLAB are you using? We introduced Git and Subversion source control integration through the Current Folder browser in release R2014b. If you have that release or later, check out the first item in the Desktop section of the Release Notes for that release of MATLAB for more information to see if it does what you need and/or want.
댓글 수: 2
Steven Lord
2015년 9월 17일
I'm not certain. I did a quick search through the documentation and didn't see anything, but I could have missed it. This seems like a reasonable question to ask Technical Support, and if there is no such function you could ask them to enter your request for it into the enhancement database.
참고 항목
카테고리
Help Center 및 File Exchange에서 Source Control에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!