# HG changeset patch # User Augie Fackler # Date 1306888613 18000 # Node ID d89d4e93bc46e2af91564e06fbdd4ebb76bab816 # Parent 2e773ed95066871834a0b3beaf367677ce30098d test-incoming: only run on hg 1.7.x and newer diff -r 2e773ed95066 -r d89d4e93bc46 tests/test-incoming --- a/tests/test-incoming Tue May 31 10:46:52 2011 -0700 +++ b/tests/test-incoming Tue May 31 19:36:53 2011 -0500 @@ -6,6 +6,9 @@ # bail if the user does not have dulwich python -c 'import dulwich, dulwich.repo' || exit 80 +# This test only works on hg 1.7 and later +python -c 'from mercurial import util ; assert util.version() > "1.7"' || exit 80 + # bail early if the user is already running git-daemon echo hi | nc localhost 9418 2>/dev/null && exit 80 @@ -90,4 +93,4 @@ hg pull hg incoming -echo 'done' \ No newline at end of file +echo 'done'