summaryrefslogtreecommitdiff
path: root/contrib/svn-fe
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2012-12-28 16:40:59 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-12-28 19:35:04 (GMT)
commita33faf2827bfc7baea5d83ef1be8fe659a963355 (patch)
tree30f2ad5df3b32acdf5e84f7b81cfdf23ea42a236 /contrib/svn-fe
parent18499ba694711c02a5bc729b7f8e362dd760b10a (diff)
downloadgit-a33faf2827bfc7baea5d83ef1be8fe659a963355.zip
git-a33faf2827bfc7baea5d83ef1be8fe659a963355.tar.gz
git-a33faf2827bfc7baea5d83ef1be8fe659a963355.tar.bz2
Add checks to Python scripts for version dependencies.
Signed-off-by: Eric S. Raymond <esr@thyrsus.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/svn-fe')
-rwxr-xr-xcontrib/svn-fe/svnrdump_sim.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/svn-fe/svnrdump_sim.py b/contrib/svn-fe/svnrdump_sim.py
index 1cfac4a..17cf6f9 100755
--- a/contrib/svn-fe/svnrdump_sim.py
+++ b/contrib/svn-fe/svnrdump_sim.py
@@ -7,6 +7,10 @@ to the highest revision that should be available.
"""
import sys, os
+if sys.hexversion < 0x02040000:
+ # The limiter is the ValueError() calls. This may be too conservative
+ sys.stderr.write("svnrdump-sim.py: requires Python 2.4 or later.\n")
+ sys.exit(1)
def getrevlimit():
var = 'SVNRMAX'