Commits

Augie Fackler committed d89d4e9

test-incoming: only run on hg 1.7.x and newer

Comments (0)

Files changed (1)

tests/test-incoming

 # 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
 
 hg pull
 hg incoming
 
-echo 'done'
+echo 'done'