[pypy-svn] r53417 - pypy/dist/pypy/tool
arigo at codespeak.net
arigo at codespeak.net
Sun Apr 6 10:29:36 CEST 2008
Author: arigo
Date: Sun Apr 6 10:29:35 2008
New Revision: 53417
Modified:
pypy/dist/pypy/tool/udir.py
Log:
Merge udir.py from the jit-hotpath branch:
setting PYPY_USESSION_BASENAME to the string "-"
gives the old behavior back (i.e. not separate
names for each branch).
Modified: pypy/dist/pypy/tool/udir.py
==============================================================================
--- pypy/dist/pypy/tool/udir.py (original)
+++ pypy/dist/pypy/tool/udir.py Sun Apr 6 10:29:35 2008
@@ -17,9 +17,11 @@
else:
return basename.split('/')[-2]
-try:
- basename = '-' + svn_info(py.path.svnwc(py.magic.autopath().dirpath()).info().url) + '-'
-except:
- basename = '-'
+basename = os.environ.get('PYPY_USESSION_BASENAME')
+if not basename:
+ try:
+ basename = '-' + svn_info(py.path.svnwc(py.magic.autopath().dirpath()).info().url) + '-'
+ except:
+ basename = '-'
udir = local.make_numbered_dir(prefix='usession' + basename, keep=3)
More information about the Pypy-commit
mailing list