MatrixBerryCore
svngeturl.m
Go to the documentation of this file.
1 function URL=svngeturl(WorkingCopy)
2 
3 % call subversion with the given parameter string to get a list of all
4 % properties
5 ParamStr=sprintf('info "%s"',WorkingCopy);
6 svnMsg=mxberry.dev.scm.subversion.svncall(ParamStr);
7 
8 URL_Idx=strfind(svnMsg,'URL:');
9 if isempty(URL_Idx)
10  error('SVN:versioningProblem', '%s',...
11  ['Problem using version control system - no URL found:' 10 ...
12  ' ' [svnMsg{:}]])
13 end
14 URL=svnMsg{URL_Idx}(6:end);
function svngeturl(in WorkingCopy)