[pypy-dev] [pypy-svn] r53194 - pypy/branch/jit-hotpath/pypy/tool

Maciek Fijalkowski fijal at genesilico.pl
Mon Mar 31 17:23:52 CEST 2008


arigo at codespeak.net wrote:
> 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 at codespeak.net
> http://codespeak.net/mailman/listinfo/pypy-svn
>
> :.
>
>   

That's because it contained tons of bugs and over checkins you got 
different dirs :-( I hope it's fixed by now

:.




More information about the Pypy-dev mailing list