[pypy-svn] r39069 - pypy/dist/pypy/module/sys
pedronis at codespeak.net
pedronis at codespeak.net
Sat Feb 17 00:42:47 CET 2007
Author: pedronis
Date: Sat Feb 17 00:42:46 2007
New Revision: 39069
Modified:
pypy/dist/pypy/module/sys/version.py
Log:
use LastChangedRevision if we are in a working copy.
Modified: pypy/dist/pypy/module/sys/version.py
==============================================================================
--- pypy/dist/pypy/module/sys/version.py (original)
+++ pypy/dist/pypy/module/sys/version.py Sat Feb 17 00:42:46 2007
@@ -13,7 +13,7 @@
SVN_URL = "$HeadURL$"[10:-28]
-REV = "$LastChangedRevision$"
+REV = "$LastChangedRevision$"[22:-2]
# ____________________________________________________________
@@ -64,7 +64,7 @@
"Return the last-changed svn revision number."
# NB. we hack the number directly out of the .svn directory to avoid
# to depend on an external 'svn' executable in the path.
- rev = 0
+ rev = int(REV)
try:
f = open(os.path.join(autopath.pypydir, '.svn', 'format'), 'r')
format = int(f.readline().strip())
More information about the Pypy-commit
mailing list