[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pypy-svn
Subject:    [pypy-svn] r53194 - pypy/branch/jit-hotpath/pypy/tool
From:       arigo () codespeak ! net
Date:       2008-03-31 8:51:44
Message-ID: 20080331085144.9C0EA1684DA () codespeak ! net
[Download RAW message or body]

Author: arigo
Date: Mon Mar 31 10:51:44 2008
New Revision: 53194

Modified:
   pypy/branch/jit-hotpath/pypy/tool/udir.py
Log:
This logic seems slightly broken - I end up with tons of different
usession names in my /tmp, not just branch names.  Anyway I prefer
the old behavior by far, so with this checkin I can set
PYPY_USESSION_BASENAME to a simple '-' and get it back.


Modified: pypy/branch/jit-hotpath/pypy/tool/udir.py
==============================================================================
--- pypy/branch/jit-hotpath/pypy/tool/udir.py	(original)
+++ pypy/branch/jit-hotpath/pypy/tool/udir.py	Mon Mar 31 10:51:44 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)
_______________________________________________
pypy-svn mailing list
pypy-svn@codespeak.net
http://codespeak.net/mailman/listinfo/pypy-svn
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic