[pypy-svn] r9732 - pypy/dist/pypy/tool
hpk at codespeak.net
hpk at codespeak.net
Fri Mar 11 09:13:47 CET 2005
Author: hpk
Date: Fri Mar 11 09:13:47 2005
New Revision: 9732
Modified:
pypy/dist/pypy/tool/delta.py
Log:
added a small helper that gets the svn revision number
from the current pypy package. This is not integrated
into the html output yet.
Modified: pypy/dist/pypy/tool/delta.py
==============================================================================
--- pypy/dist/pypy/tool/delta.py (original)
+++ pypy/dist/pypy/tool/delta.py Fri Mar 11 09:13:47 2005
@@ -684,6 +684,16 @@
TO_CHECK.remove('xxsubtype')
TO_CHECK.sort()
+def getpypyrevision(cache=[]):
+ try:
+ return cache[0]
+ except IndexError:
+ import pypy
+ import py
+ pypydir = py.path.svnwc(pypy.__file__).dirpath()
+ rev = pypydir.info().rev
+ cache.append(rev)
+ return rev
if __name__ == '__main__':
if len(sys.argv) == 1:
More information about the Pypy-commit
mailing list