[pypy-svn] r32344 - pypy/dist/pypy/translator/goal

arigo at codespeak.net arigo at codespeak.net
Fri Sep 15 10:24:54 CEST 2006


Author: arigo
Date: Fri Sep 15 10:24:52 2006
New Revision: 32344

Modified:
   pypy/dist/pypy/translator/goal/bench-cronjob.py
Log:
'svn info' output format has a new line in svn 1.4.  Use the py lib's
cleaner method to get at the current revision number.



Modified: pypy/dist/pypy/translator/goal/bench-cronjob.py
==============================================================================
--- pypy/dist/pypy/translator/goal/bench-cronjob.py	(original)
+++ pypy/dist/pypy/translator/goal/bench-cronjob.py	Fri Sep 15 10:24:52 2006
@@ -113,7 +113,7 @@
 
     os.chdir(homedir + '/projects/pypy-dist')
     try:
-        revision = os.popen('svn info 2>&1').readlines()[3].split()[1]
+        revision = '%d' % (py.path.svnwc('.').info().rev,)
     except:
         revision = 'unknown'
     basename = homedir + '/projects/pypy-dist/pypy/translator/goal/' + 'pypy-' + backend



More information about the Pypy-commit mailing list