Changeset 359


Ignore:
Timestamp:
Jan 5, 2012, 2:56:15 PM (13 years ago)
Author:
gostiaux
Message:

No svn output in matlab command at opening of uvmat

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/check_files.m

    r357 r359  
    146146end
    147147date_str=datestr(max(datnum));
    148 try
    149     [status]=system('svn --help');
    150     if status==0
    151         [tild,result]=system(['svn info ' dir_fct]);
    152         t=regexp(result,'R.vision\s:\s(?<rev>\d+)','names');
    153         svn_info.cur_rev=str2double(t.rev);
    154         [tild,result]=system(['svn info -r ''HEAD'' '  dir_fct]);
    155         t=regexp(result,'R.vision\s:\s(?<rev>\d+)','names');
    156         svn_info.rep_rev=str2double(t.rev);
    157         [tild,result]=system(['svn status'  dir_fct]);
    158         svn_info.status=result;
    159         if svn_info.rep_rev>svn_info.cur_rev
    160             errormsg {length(errormsg)+1}=['Repository now at revision ' num2str(svn_info.rep_rev) '. Please type svn update in uvmat folder'];
    161         end
    162         modifications=regexp(svn_info.status,'M\s[^(\n|\>)]+','match');
    163         if ~isempty(modifications)
    164             for k=1:length(modifications)
    165                 errormsg {length(errormsg)+1}=modifications{k};
    166             end
     148[status,result]=system('svn --help');
     149if status==0
     150    [tild,result]=system(['svn info ' dir_fct]);
     151    t=regexp(result,'R.vision\s:\s(?<rev>\d+)','names');
     152    svn_info.cur_rev=str2double(t.rev);
     153    [tild,result]=system(['svn info -r ''HEAD'' '  dir_fct]);
     154    t=regexp(result,'R.vision\s:\s(?<rev>\d+)','names');
     155    svn_info.rep_rev=str2double(t.rev);
     156    [tild,result]=system(['svn status'  dir_fct]);
     157    svn_info.status=result;
     158    if svn_info.rep_rev>svn_info.cur_rev
     159        errormsg {length(errormsg)+1}=['Repository now at revision ' num2str(svn_info.rep_rev) '. Please type svn update in uvmat folder'];
     160    end
     161    modifications=regexp(svn_info.status,'M\s[^(\n|\>)]+','match');
     162    if ~isempty(modifications)
     163        for k=1:length(modifications)
     164            errormsg {length(errormsg)+1}=modifications{k};
    167165        end
    168166    end
Note: See TracChangeset for help on using the changeset viewer.