Skip to content
Snippets Groups Projects
Commit af0e70e5 authored by David M. Carr's avatar David M. Carr
Browse files

tests: tweak which hg versions run test-pull-after-strip

Without this change, the test is skipped for modern versions of Mercurial
with minor version less than 5, despite the test actually passing for said
versions.
parent ac16efd2
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@
cat > tmp.py <<EOF
import sys
v = sys.stdin.read().strip()[:-1]
if v[1] == '.' and int(v[2]) > 4:
if v[1] == '.' and ((int(v[0]) == 1 and int(v[2]) > 4) or int(v[0]) > 1):
sys.exit(0)
sys.exit(1)
EOF
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment