3 UNVERSIONED_MESSAGE=
'unversioned';
4 UNVERSIONED_FILE_SVN_MESSAGE=
'Unversioned file';
8 nProp=length(varargin);
12 isErrorsIgnored=prop{k+1};
15 'unknown property %s',prop{k});
19 [svnErr,svnMsg]=system([
'svnversion ' '"',ReferencePath,
'"']);
20 % create cellstring with one row per line
21 svnMsg=textscan(svnMsg,
'%s',
'whitespace',
char(10));
22 % check
for an error reported by the operating system
24 throwerror(
'svnError',strrep([svnMsg{1}{:}],
'\',
'/'));
27 if strcmp(rev,UNVERSIONED_FILE_SVN_MESSAGE)
28 rev=UNVERSIONED_MESSAGE;
35 rev=UNVERSIONED_MESSAGE;
function throwerror(in msgTag, in varargin)
THROWERROR works similarly to built-in ERROR function in case when there is no output arguments but s...
function getrevisionbypath(in ReferencePath, in varargin)
function parseparams(in args, in propNameList, in nRegExpected, in nPropExpected)
PARSEPARAMS behaves exactly as a built-in Matlab function apart from the incorrect behavior of Matlab...