Changeset 283


Ignore:
Timestamp:
Nov 18, 2011, 4:21:35 PM (13 years ago)
Author:
gostiaux
Message:

modification for systems without svn

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/check_files.m

    r277 r283  
    3131svn_info.rep_rev=[];
    3232svn_info.cur_rev=[];
     33svn_info.status=[];
    3334list_fct={...
    3435    'calc_field';...% defines fields (velocity, vort, div...) from civx data and calculate them
     
    149150    [~,result]=system('svn status');   
    150151    svn_info.status=result;
    151 end
    152 
    153 if svn_info.rep_rev>svn_info.cur_rev
    154     errormsg {length(errormsg)+1}=['Repository now at revision ' num2str(svn_info.rep_rev) '. Please type svn update in uvmat folder'];
    155 end
    156 
    157 modifications=regexp(svn_info.status,'M\s[^(\n|\>)]+','match');
    158 
    159 if ~isempty(modifications)
    160     for k=1:length(modifications)
    161         errormsg {length(errormsg)+1}=modifications{k};
     152    if svn_info.rep_rev>svn_info.cur_rev
     153        errormsg {length(errormsg)+1}=['Repository now at revision ' num2str(svn_info.rep_rev) '. Please type svn update in uvmat folder'];
     154    end
     155   
     156    modifications=regexp(svn_info.status,'M\s[^(\n|\>)]+','match');
     157   
     158    if ~isempty(modifications)
     159        for k=1:length(modifications)
     160            errormsg {length(errormsg)+1}=modifications{k};
     161        end
    162162    end
    163163end
    164164errormsg=errormsg';
     165
Note: See TracChangeset for help on using the changeset viewer.