Boost logo

Boost-Commit :

From: bdawes_at_[hidden]
Date: 2007-09-24 09:32:44


Author: bemandawes
Date: 2007-09-24 09:32:43 EDT (Mon, 24 Sep 2007)
New Revision: 39508
URL: http://svn.boost.org/trac/boost/changeset/39508

Log:
Replace use of re in detecting revision with string functions. Nicola Musatti reported problems with Italian version of XP. Although this change should fix the crash, it isn't the final solution.
Text files modified:
   trunk/tools/regression/xsl_reports/runner/regression.py | 15 ++++++++++-----
   1 files changed, 10 insertions(+), 5 deletions(-)

Modified: trunk/tools/regression/xsl_reports/runner/regression.py
==============================================================================
--- trunk/tools/regression/xsl_reports/runner/regression.py (original)
+++ trunk/tools/regression/xsl_reports/runner/regression.py 2007-09-24 09:32:43 EDT (Mon, 24 Sep 2007)
@@ -20,7 +20,6 @@
 import traceback
 import string
 import sys
-import re
 
 regression_root = os.path.abspath( os.path.dirname( sys.argv[0] ) )
 regression_results = os.path.join( regression_root, 'results' )
@@ -658,10 +657,16 @@
         svn_command( 'user', 'info ' + boost_root + ' >' + svn_info_file )
 
     if os.path.exists( svn_info_file ):
- f = open( svn_info_file, 'r' )
- svn_info = f.read()
- f.close()
- revision = re.search( 'Revision: ([0-9]*)', svn_info ).group(1)
+ f = open( svn_info_file, 'r' )
+ svn_info = f.read()
+ f.close()
+ i = svn_info.find( 'Revision:' )
+ if i >= 0:
+ i += 10
+ while svn_info[i] >= '0' and svn_info[i] <= '9':
+ revision += svn_info[i]
+ i += 1
+
       
     from runner import collect_logs
     collect_logs(


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk